Giter Club home page Giter Club logo

starters's Introduction

Ionic Starter Templates

📖 Start an Ionic app: See our Getting Started guide.

📣 Support: See our Support Page for general support questions. The issues on GitHub should be reserved for bug reports and feature requests.

💖 Modify or add starter templates: See CONTRIBUTING.md.

Starters

Project Type Description Links
angular Ionic Angular 4+ w/ Angular CLI for Tooling base template / starter templates
ionic-angular Ionic Angular 2/3 w/ @ionic/app-scripts for Tooling base template / starter templates
ionic1 Ionic 1 w/ AngularJS base template / starter templates
react React 16+ w/ react-scripts for Tooling base template / starter templates
vue Vue 3+ w/ @vue/cli-service for Tooling base template / starter templates

Integrations

starters's People

Contributors

benevolentprof avatar brandyscarney avatar camwiegert avatar danbucholtz avatar danielsogl avatar dependabot-preview[bot] avatar dependabot[bot] avatar dtarnawsky avatar elylucas avatar imhoffd avatar jcesarmobile avatar jgw96 avatar jthoms1 avatar justinnoel avatar kensodemann avatar liamdebeasi avatar ltm avatar mapsandapps avatar mhartington avatar mlynch avatar morphatic avatar nphyatt avatar rdlabo avatar richardzcode avatar sean-perkins avatar tallyb avatar thetapc avatar waitingsong avatar willmartian avatar wsamoht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

starters's Issues

菜鸟葱白你们

我只是想关注你们。我什么也帮助不了。为能做的就是给你们动力

Cannot find type definition file

getting below error with IONIC 3

typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 1
Cannot find type definition file for 'paho-mqtt'.

   L1:  import { Client } from 'paho-mqtt';
   L2:  import * as Observable from 'zen-observable';

[12:58:05] typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2
Cannot find type definition file for 'zen-observable'.

   L1:  import { Client } from 'paho-mqtt';
   L2:  import * as Observable from 'zen-observable';
   L3:  import { AbstractPubSubProvider } from './PubSubProvider';

[12:58:05] typescript: node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
Cannot find type definition file for 'zen-observable'.

   L1:  import * as Observable from 'zen-observable';
   L2:  import { PubSubProvider, ProvidertOptions } from '../types';

[12:58:05] typescript: node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
Cannot find type definition file for 'zen-observable'.

   L1:  import * as Observable from 'zen-observable';
   L2:  import { PubSubProvider, PubSubOptions, ProvidertOptions } from './types';

[12:58:05] typescript: node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
Cannot find type definition file for 'zen-observable'.

   L1:  import * as Observable from 'zen-observable';
   L2:  import { ProvidertOptions } from './PubSub';

How to add new page?

I know how to add a page in ordinary ionic app, however, when using the 'best practise', how to do that?

Unlike the way I used to, this template is using string value in pages.ts instead of the class constructor object (function). Also, I don't see any pages in app.module.ts in the imports nor entryComponents fields.

It seems for the lazy loading, but how does it works?

Let's say, I created a page using ionic g page Test and want to set it as the default page for some testing (set as rootPage in MyApp).
How should I 'register' it so that the ionic runtime can resolve this page?

Starter pack tabs @ionic/angular: 4.0.0-beta.19 uses wrong dependencies.

Starter Template:
tabs

Description:
After using the ionic command to start a new ionic 4 project with the start template tabs I got npm warnings that the ionic 4.0.0-beta.19 requires a peer of @angular 7.1.3

My ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.5.0 (C:\.......\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.19
   @angular-devkit/build-angular : 0.10.7
   @angular-devkit/schematics    : 7.0.7
   @angular/cli                  : 7.0.7
   @ionic/angular-toolkit        : 1.2.0

System:

   NodeJS : v8.11.4 (C:\.....\nodejs\node.exe)
   npm    : 6.0.1
   OS     : Windows 10

Other Information:

npm WARN @ionic/[email protected] requires a peer of @angular-devkit/core@^7.1.2 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular-devkit/schematics@^7.1.2 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/core@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/common@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/forms@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/router@~7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/compiler@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/compiler-cli@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/platform-browser@^7.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/[email protected] requires a peer of @angular/platform-browser-dynamic@^7.1.3 but none is installed. You must install peer dependencies yourself.

[Ionic AWS starter] - ionic serve from fresh install returns errors.

Starter Type: ionic-angular
Starter Template: aws

Description:
I have followed all instructions to setup the Ionic AWS starter as noted here:
https://github.com/ionic-team/starters/tree/master/ionic-angular/official/aws

When I run ionic serve, I found errors.

To fix these errors I have run the following commands:
npm install --save-dev @types/zen-observable
npm install --save-dev @types/paho-mqtt
npm install --save-dev @types/node
and add the following to my tsconfig.json file:
"types": ["node"]
As recommended here: aws-amplify/amplify-js#629

I then made these changes to the following files as recommended by beevelop:

// src/pages/account/account.ts:42 (additional param & casting)
  refreshAvatar() {
    Storage.get(this.userId + '/avatar', {})
      .then(url => this.avatarPhoto = (url as string));
  }

// src/pages/confirmSignIn/confirmSignIn.ts:24 (adding null param)
  confirm() {
    Auth.confirmSignIn(this.user, this.code, null)

// src/pages/tasks/tasks.ts:0,52,83,99
import { DocumentClient } from 'aws-sdk/clients/dynamodb';
.then(client => (client as DocumentClient).query(params).promise())
.then(client => (client as DocumentClient).put(params).promise())
.then(client => (client as DocumentClient).delete(params).promise())

as recommended here: #52

Even after making these changes, I am still seeing the following errors:

Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703
--nobrowser - Ctrl+C to cancel
[15:32:25]  watch started ...
[15:32:25]  build dev started ...
[15:32:25]  clean started ...
[15:32:25]  clean finished in 4 ms
[15:32:25]  copy started ...
[15:32:25]  deeplinks started ...
[15:32:25]  deeplinks finished in 46 ms
[15:32:25]  transpile started ...
[15:32:33]  typescript: ...-llama/app/node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 1
            Cannot find type definition file for 'paho-mqtt'.

       L1:  import { Client } from 'paho-mqtt';
       L2:  import * as Observable from 'zen-observable';

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/acm.d.ts, line: 108
            Cannot find name 'Buffer'.

     L107:  export type CertificateBody = string;
     L108:  export type CertificateBodyBlob = Buffer|Uint8Array|Blob|string;
     L109:  export type CertificateChain = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/acm.d.ts, line: 110
            Cannot find name 'Buffer'.

     L109:  export type CertificateChain = string;
     L110:  export type CertificateChainBlob = Buffer|Uint8Array|Blob|string;
     L111:  export interface CertificateDetail {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/acm.d.ts, line: 401
            Cannot find name 'Buffer'.

     L400:  export type NextToken = string;
     L401:  export type PrivateKeyBlob = Buffer|Uint8Array|Blob|string;
     L402:  export type RecordType = "CNAME"|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/apigateway.d.ts, line:
1146
            Cannot find name 'Buffer'.

    L1146:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L1147:  export type Boolean = boolean;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/appsync.d.ts, line: 248
            Cannot find name 'Buffer'.

     L247:  export type AuthenticationType = "API_KEY"|"AWS_IAM"|"AMAZON_COGNITO_USER_POOLS"|string;
     L248:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L249:  export type Boolean = boolean;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/clouddirectory.d.ts, line: 1469
            Cannot find name 'Buffer'.

    L1469:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
    L1470:  export type Bool = boolean;

[15:32:33]  typescript: .../xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: .../xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 42
            Cannot find name 'Buffer'.

      L41:  export type Adds = number;
      L42:  export type _Blob = Buffer|Uint8Array|Blob|string|Readable;
      L43:  export interface Bucket {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/cloudtrail.d.ts, line:
141
            Cannot find name 'Buffer'.

     L140:  export type Boolean = boolean;
     L141:  export type ByteBuffer = Buffer|Uint8Array|Blob|string;
     L142:  export interface CreateTrailRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/codecommit.d.ts, line:
1539
            Cannot find name 'Buffer'.

    L1539:  export type blob = Buffer|Uint8Array|Blob|string;

[15:32:33]  typescript: .../blue-llama/app/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts, line: 2581
            Cannot find name 'Buffer'.

    L2580:  export type IdpIdentifiersListType = IdpIdentifierType[];
    L2581:  export type ImageFileType = Buffer|Uint8Array|Blob|string;
    L2582:  export type ImageUrlType = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/directconnect.d.ts, line: 992
            Cannot find name 'Buffer'.

     L992:  export type LoaContent = Buffer|Uint8Array|Blob|string;
     L993:  export type LoaContentType = "application/pdf"|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/dms.d.ts, line: 448
            Cannot find name 'Buffer'.

     L447:  export type CertificateList = Certificate[];
     L448:  export type CertificateWallet = Buffer|Uint8Array|Blob|string;
     L449:  export type CompressionTypeValue = "none"|"gzip"|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/dynamodb.d.ts, line: 466
            Cannot find name 'Buffer'.

     L465:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L466:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L467:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/dynamodbstreams.d.ts, line: 92
            Cannot find name 'Buffer'.

      L92:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
      L93:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/ec2.d.ts, line: 3026
            Cannot find name 'Buffer'.

    L3025:  export type BillingProductList = String[];
    L3026:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L3027:  export interface BlobAttributeValue {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/ecr.d.ts, line: 767
            Cannot find name 'Buffer'.

     L766:  export type LayerList = Layer[];
     L767:  export type LayerPartBlob = Buffer|Uint8Array|Blob|string;
     L768:  export type LayerSizeInBytes = number;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/firehose.d.ts, line: 156
            Cannot find name 'Buffer'.

     L156:  export type Data = Buffer|Uint8Array|Blob|string;
     L157:  export type DataTableColumns = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/glacier.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/glacier.d.ts, line: 1313
            Cannot find name 'Buffer'.

    L1312:  export type StorageClass = "STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"|string;
    L1313:  export type Stream = Buffer|Uint8Array|Blob|string|Readable;
    L1314:  export type TagKey = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/iam.d.ts, line: 1112
            Cannot find name 'Buffer'.

    L1112:  export type BootstrapDatum = Buffer|Uint8Array|Blob|string;
    L1113:  export interface ChangePasswordRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/iam.d.ts, line: 3106
            Cannot find name 'Buffer'.

    L3106:  export type ReportContentType = Buffer|Uint8Array|Blob|string;
    L3107:  export type ReportFormatType = "text/csv"|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/iot.d.ts, line: 4325
            Cannot find name 'Buffer'.

    L4324:    disableAllLogs?: DisableAllLogs;
    L4326:  export type Signature = Buffer|Uint8Array|Blob|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/iotdata.d.ts, line: 73
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/iotdata.d.ts, line: 74
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;
      L75:  export interface PublishRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/kinesis.d.ts, line: 237
            Cannot find name 'Buffer'.

     L237:  export type Data = Buffer|Uint8Array|Blob|string;
     L238:  export interface DecreaseStreamRetentionPeriodInput {

[15:32:33]  typescript: ...tdocs/blue-llama/app/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: ...tdocs/blue-llama/app/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 121
            Cannot find name 'Buffer'.

     L120:  export type PageLimit = number;
     L121:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
     L122:  export type StreamName = string;

[15:32:33]  typescript: .../xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: .../xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 53
            Cannot find name 'Buffer'.

      L53:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
      L54:  export type ResourceARN = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/kms.d.ts, line: 328
            Cannot find name 'Buffer'.

     L328:  export type CiphertextType = Buffer|Uint8Array|Blob|string;
     L329:  export interface CreateAliasRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/kms.d.ts, line: 962
            Cannot find name 'Buffer'.

     L961:  export type PendingWindowInDaysType = number;
     L962:  export type PlaintextType = Buffer|Uint8Array|Blob|string;
     L963:  export type PolicyNameList = PolicyNameType[];

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/lambda.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/lambda.d.ts, line: 372
            Cannot find name 'Buffer'.

     L371:  export type BatchSize = number;
     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/lambda.d.ts, line: 373
            Cannot find name 'Buffer'.

     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
     L374:  export type Boolean = boolean;

[15:32:33]  typescript: .../htdocs/blue-llama/app/node_modules/aws-sdk/clients/lexmodelbuildingservice.d.ts, line: 306
            Cannot find name 'Buffer'.

     L305:  export type AliasNameOrListAll = string;
     L306:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L307:  export type Boolean = boolean;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/lexruntime.d.ts, line:
7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/lexruntime.d.ts, line:
35
            Cannot find name 'Buffer'.

      L34:  export type AttributesString = string;
      L35:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
      L36:  export type BotAlias = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 199
            Cannot find name 'Buffer'.

     L198:  export type PathNaming = string;
     L199:  export type PayloadBlob = Buffer|Uint8Array|Blob|string|Readable;
     L200:  export interface PutObjectRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/mobile.d.ts, line: 106
            Cannot find name 'Buffer'.

     L105:  export type ConsoleUrl = string;
     L106:  export type Contents = Buffer|Uint8Array|Blob|string;
     L107:  export interface CreateProjectRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/polly.d.ts, line: 8
            Cannot find module 'stream'.

       L7:  import {Presigner as presigner} from '../lib/polly/presigner';
       L8:  import {Readable} from 'stream';
       L9:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/polly.d.ts, line: 70
            Cannot find name 'Buffer'.

      L69:  export type Alphabet = string;
      L70:  export type AudioStream = Buffer|Uint8Array|Blob|string|Readable;
      L71:  export type ContentType = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/rekognition.d.ts, line: 1135
            Cannot find name 'Buffer'.

    L1135:  export type ImageBlob = Buffer|Uint8Array|Blob|string;
    L1136:  export type ImageId = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/s3.d.ts, line: 10
            Cannot find module 'stream'.

       L9:  import {PresignedPost as presigned_post} from '../lib/s3/presigned_post';
      L10:  import {Readable} from 'stream';
      L11:  interface Blob {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/s3.d.ts, line: 777
            Cannot find name 'Buffer'.

     L776:  export type AnalyticsS3ExportFileFormat = "CSV"|string;
     L777:  export type Body = Buffer|Uint8Array|Blob|string|Readable;
     L778:  export interface Bucket {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/s3.d.ts, line: 1131
            Cannot find name 'Buffer'.

    L1130:  export type CopySourceSSECustomerAlgorithm = string;
    L1131:  export type CopySourceSSECustomerKey = Buffer|Uint8Array|Blob|string;
    L1132:  export type CopySourceSSECustomerKeyMD5 = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/s3.d.ts, line: 3473
            Cannot find name 'Buffer'.

    L3472:  export type SSECustomerAlgorithm = string;
    L3473:  export type SSECustomerKey = Buffer|Uint8Array|Blob|string;
    L3474:  export type SSECustomerKeyMD5 = string;

[15:32:33]  typescript: ...:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/sagemakerruntime.d.ts, line: 24
            Cannot find name 'Buffer'.

      L23:  declare namespace SageMakerRuntime {
      L24:    export type BodyBlob = Buffer|Uint8Array|Blob|string;
      L25:    export type EndpointName = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/ses.d.ts, line: 1513
            Cannot find name 'Buffer'.

    L1513:    Data: RawMessageData;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/sns.d.ts, line: 275
            Cannot find name 'Buffer'.

     L275:  export type Binary = Buffer|Uint8Array|Blob|string;
     L276:  export interface CheckIfPhoneNumberIsOptedOutInput {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/sqs.d.ts, line: 216
            Cannot find name 'Buffer'.

     L215:  export type BatchResultErrorEntryList = BatchResultErrorEntry[];
     L216:  export type Binary = Buffer|Uint8Array|Blob|string;
     L217:  export type BinaryList = Binary[];

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/ssm.d.ts, line: 4580
            Cannot find name 'Buffer'.

    L4580:  export type MaintenanceWindowLambdaPayload = Buffer|Uint8Array|Blob|string;
    L4581:  export type MaintenanceWindowLambdaQualifier = string;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/support.d.ts, line: 336
            Cannot find name 'Buffer'.

     L336:  export type Data = Buffer|Uint8Array|Blob|string;
     L337:  export interface DescribeAttachmentRequest {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/waf.d.ts, line: 604
            Cannot find name 'Buffer'.

     L603:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L604:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L605:  export interface ByteMatchTuple {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/clients/wafregional.d.ts, line: 648
            Cannot find name 'Buffer'.

     L647:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L648:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L649:  export interface ByteMatchTuple {

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/config.d.ts, line: 1
            Cannot find module 'http'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/config.d.ts, line: 2
            Cannot find module 'https'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';
       L3:  import {AWSError} from './error';

[15:32:33]  typescript: ...mpp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 2
            Cannot find module 'stream'.

       L1:  import DynamoDB = require('../../clients/dynamodb');
       L2:  import * as stream from 'stream';
       L3:  import {Request} from '../request';

[15:32:33]  typescript: ...mpp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 93
            Cannot find name 'Buffer'.

      L93:      export type binaryType = Buffer|File|Blob|ArrayBuffer|DataView|Int8Array|Uint8Array|Uint8ClampedArray|In

[15:32:33]  typescript: ...mpp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 274
            Cannot find name 'Buffer'.

     L273:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L274:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L275:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/http_response.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  interface XMLHttpRequest {}

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/http_response.d.ts, line: 14
            Cannot find name 'Buffer'.

      L14:  body: string|Buffer|Uint8Array;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/request.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  import {Service} from './service';

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/request.d.ts, line: 132
            Cannot find name 'Buffer'.

     L132:  on(event: "httpData", listener: (chunk: Buffer|Uint8Array, response: Response<D, E>) => void):
Request<D, E>

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/node_modules/aws-sdk/lib/services/glacier.d.ts, line: 10
            Cannot find name 'Buffer'.

      L10:      computeChecksums(data: Buffer|string): GlacierComputeChecksumsOutput;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/src/app/app.module.ts, line: 25
            Cannot find name 'require'.

      L24:  import Amplify from 'aws-amplify';
      L25:  const aws_exports = require('../aws-exports').default;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/src/pages/tasks/tasks.ts, line: 8
            Cannot find name 'require'.

       L7:  import { TasksCreatePage } from '../tasks-create/tasks-create';
       L8:  const aws_exports = require('../../aws-exports').default;

[15:32:33]  typescript: C:/xampp/htdocs/blue-llama/app/src/providers/aws.dynamodb.ts, line: 4
            Cannot find name 'require'.

       L3:  import AWS from 'aws-sdk';
       L4:  const aws_exports = require('../aws-exports').default;

[15:32:33]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.56.1:8100, http://192.168.99.1:8100, http://192.168.0.28:8100
     DevApp: app@8100 on DESKTOP-JE9FKU1

[15:32:33]  copy finished in 7.64 s
[15:32:33]  watch ready in 7.74 s

My ionic info:

cli packages: (C:\Users\Ian\AppData\Roaming\npm\node_modules)
    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0
global packages:
    cordova (Cordova CLI) : 8.0.0
local packages:
    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2
System:
    Node : v8.9.4
    npm  : 5.6.0
    OS   : Windows 10
Environment Variables:
    ANDROID_HOME : not set
Misc:
    backend : pro

Ionic AWS Starter fails to compile when built from scratch

Running npm run build -- ionic-angular/official/aws/ allows me to run the starter with ionic serve (after configuring with awsmobile init), but if I create an aws project with ionic start myApp aws and follow all the steps from the README I can't compile the project:

$ ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 
--dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[03:42:39]  watch started ... 
[03:42:39]  build dev started ... 
[03:42:39]  clean started ... 
[03:42:39]  clean finished in 1 ms 
[03:42:39]  copy started ... 
[03:42:39]  deeplinks started ... 
[03:42:39]  deeplinks finished in 38 ms 
[03:42:39]  transpile started ... 
[03:42:45]  typescript: node_modules/aws-sdk/clients/acm.d.ts, line: 108 
            Cannot find name 'Buffer'. 

     L107:  export type CertificateBody = string;
     L108:  export type CertificateBodyBlob = Buffer|Uint8Array|Blob|string;
     L109:  export type CertificateChain = string;

[03:42:45]  typescript: node_modules/aws-sdk/clients/acm.d.ts, line: 110 
            Cannot find name 'Buffer'. 

     L109:  export type CertificateChain = string;
     L110:  export type CertificateChainBlob = Buffer|Uint8Array|Blob|string;
     L111:  export interface CertificateDetail {

[03:42:45]  typescript: node_modules/aws-sdk/clients/acm.d.ts, line: 401 
            Cannot find name 'Buffer'. 

     L400:  export type NextToken = string;
     L401:  export type PrivateKeyBlob = Buffer|Uint8Array|Blob|string;
     L402:  export type RecordType = "CNAME"|string;

[...]

I compared the built starter with the generated project and could not find any relevant difference. What am I doing wrong?

Cannot build the super starter in production mode

Since the last update to angular 5, the super starter (and maybe others, didn't check) do not build in production anymore. Just try this:

  1. ionic start MyApp
  2. Select the super starter
  3. cd MyApp
  4. npm run ionic:build --prod
    And you will have the following error:
Type CardsPage in ../MyIdeaPool/src/pages/cards/cards.ts is part of 
            the declarations of 2 modules: CardsPageModule in [..]
[08:42:33]  ionic-app-script task: "build" 
[08:42:33]  Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above

I would suggest that the starters should be tested for build using the --prod flag before it is pushed on the master branch.

$ ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 6.5.0 

local packages:

    @ionic/app-scripts : 3.1.7
    Cordova Platforms  : android 6.1.2 ios 4.3.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.1 
    ios-sim           : 5.0.13 
    Node              : v7.4.0
    npm               : 4.1.2 
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b 

Environment Variables:

    ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1

Misc:

    backend : legacy

Use cordova-plugin-ionic-keyboard for starters ?

The current ionic-plugin-keyboard is broken for me at least with the cordova-plugin-ionic-webview while building using with latest xcode 9.X. (fixed elements going out of view when keyboard is opened, webview scrolling while disableScroll is activated, etc.)
While trying to reproduce using the ionic-conference-app, I couldn't because this project is using another keyboard plugin "cordova-plugin-ionic-keyboard" which solves all my issues.

Why is there two plugins keyboard from ionic ? Is there a deprecated one ?

Thanks in advance for the feeback.

help me! help me!please!

help me! help me!我现在的情况非常糟糕,我想知道我应该安装哪个ionic 版本 才能使用angular4.x版本开发!这虽然不是 bug 也不是new request,但是以后会有bug也会有new request

InvalidSignatureException

I'm trying to read from a DynamoDB table (CustomTable) that I created manualy ( it was not created by the awsmobile CLI). I have added the arn of the table to the Allow section of the Policy Role

"Effect": "Allow",
   "Action": [
      "dynamodb:BatchGetItem",
      "dynamodb:DescribeTable",
      "dynamodb:GetItem",
      "dynamodb:ListTables",
      "dynamodb:Query",
      "dynamodb:Scan"
       ],
    "Resource": [
       "arn:aws:dynamodb:us-east-1:677548906110:table/test-mobilehub-558515137-tasks",
       "arn:aws:dynamodb:us-east-1:677548906110:table/test-mobilehub-558515137-tasks/index/DateSorted",
       "arn:aws:dynamodb:us-east-1:677548906110:table/CustomTable*"
       ]

But I am getting this error:

eror is InvalidSignatureException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

Surely there is a way to access tables created outside the CLI? This was working in the previous version

Unable to Locate Credentials

After running aws s3 cp s3://..., with the correct bucket name, I get the following error:

fatal error: Unable to locate credentials

I followed all the steps. If I were supposed to do something else, please include it.

AWS Mobile CLI Init Issue - Is There Another Way To Config?

Starter Type:
Starter Template:

Description:

After awsmobile init -

backend awsmobile project creation error
the security token included in the request is invalid
{ UnrecognizedClientException: The security token included in the request is invalid ....

I recognize that this is an aws cli issue, I have set modified config multiple times credentials, environment variables, created users, etc.,

I am wondering if there is a way to configure the aws backend manually with a config file or a large hammer?

My ionic info:

<paste here>

Other Information:

Making custom pipes globally available for all pages

Im using the ionic-starter-super and Im trying to make a pipe available globally, doing so in app.module doesnt work (i.e its not available in the pages) doing it in each pages *.module.ts does work until you import the same pipe into 2 individual pages.

From this template the options are:
a) register the pipe in app.module.ts but its not globally available to all the pages
b) register in each individual pages *.module.ts - but this will throw an error that the pipe is being duplicated in the app.

How do you import pipes globally ?

sass error - Ionic Super Starter

Starter Type: ionic-angular
Starter Template: super

Description:
I'm getting an issue with sass after execute the command ionic serve:

jdnichollsc$ ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
- Ctrl+C to cancel
[13:46:12]  watch started ...
[13:46:12]  build dev started ...
[13:46:13]  clean started ...
[13:46:13]  clean finished in 7 ms
[13:46:13]  copy started ...
[13:46:13]  deeplinks started ...
[13:46:13]  deeplinks finished in 93 ms
[13:46:13]  transpile started ...
[13:46:16]  transpile finished in 2.86 s
[13:46:16]  preprocess started ...
[13:46:16]  preprocess finished in less than 1 ms
[13:46:16]  webpack started ...
[13:46:16]  copy finished in 3.10 s
[13:46:21]  webpack finished in 5.75 s
[13:46:21]  sass started ...
[13:46:21]  sass error
            Invalid UTF-8

My ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 6.5.0

local packages:

    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : ios 4.3.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    ios-sim           : 5.0.13
    Node              : v8.9.4
    npm               : 5.6.0
    OS                : macOS High Sierra
    Xcode             : Xcode 9.3 Build version 9E145

Environment Variables:

    ANDROID_HOME : /usr/local/share/android-sdk

Misc:

    backend : pro

Thanks in advance, Nicholls

Ionic AWS Starter App fails to start.

Starter Type: ionic3
Starter Template: aws

Description:
Ionic aws starter project after following each step of the way does not start.

My ionic info:

ionic info

cli packages: (C:\Users\Aditya Misra\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v9.9.0
    npm               : 6.1.0
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\androidsdk

Misc:

    backend : pro


Other Information:

ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[14:27:38]  watch started ...
[14:27:38]  build dev started ...

and it ends right there. No browser is opened, nor can I see the app post publishing.

I figured the app wasn't getting built. So I ran npm run build and got the following output.

npm run build

> [email protected] build C:\Users\Aditya Misra\Documents\aws-test\myApp
> ionic-app-scripts build

Terminate batch job (Y/N)?
^C
C:\Users\Aditya Misra\Documents\aws-test\myApp>ionic build
Running app-scripts build:
[14:37:57]  build dev started ...
[14:37:57]  clean started ...
[14:37:57]  clean finished in 4 ms
[14:37:57]  copy started ...
[14:37:58]  deeplinks started ...
[14:37:58]  deeplinks finished in 107 ms
[14:37:58]  transpile started ...
[14:38:13]  typescript: ...test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 1
            Cannot find type definition file for 'paho-mqtt'.

       L1:  import { Client } from 'paho-mqtt';
       L2:  import * as Observable from 'zen-observable';

[14:38:13]  typescript: ...test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2
            Cannot find type definition file for 'zen-observable'.

       L1:  import { Client } from 'paho-mqtt';
       L2:  import * as Observable from 'zen-observable';
       L3:  import { AbstractPubSubProvider } from './PubSubProvider';

[14:38:13]  typescript: ...aws-test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import * as Observable from 'zen-observable';
       L2:  import { PubSubProvider, ProvidertOptions } from '../types';

[14:38:13]  typescript: ...ocuments/DevKarya/aws-test/myApp/node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import '../Common/Polyfills';
       L2:  import * as Observable from 'zen-observable';

[14:38:13]  typescript: .../DevKarya/aws-test/myApp/node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import * as Observable from 'zen-observable';
       L2:  import { ProvidertOptions } from './PubSub';

[14:38:13]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 108
            Cannot find name 'Buffer'.

     L107:  export type CertificateBody = string;
     L108:  export type CertificateBodyBlob = Buffer|Uint8Array|Blob|string;
     L109:  export type CertificateChain = string;

[14:38:13]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 110
            Cannot find name 'Buffer'.

     L109:  export type CertificateChain = string;
     L110:  export type CertificateChainBlob = Buffer|Uint8Array|Blob|string;
     L111:  export interface CertificateDetail {

[14:38:13]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 401
            Cannot find name 'Buffer'.

     L400:  export type NextToken = string;
     L401:  export type PrivateKeyBlob = Buffer|Uint8Array|Blob|string;
     L402:  export type RecordType = "CNAME"|string;

[14:38:13]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/apigateway.d.ts, line: 1146
            Cannot find name 'Buffer'.

    L1146:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L1147:  export type Boolean = boolean;

[14:38:13]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/appsync.d.ts, line: 248
            Cannot find name 'Buffer'.

     L247:  export type AuthenticationType = "API_KEY"|"AWS_IAM"|"AMAZON_COGNITO_USER_POOLS"|string;
     L248:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L249:  export type Boolean = boolean;

[14:38:13]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/clouddirectory.d.ts, line: 1469
            Cannot find name 'Buffer'.

    L1469:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
    L1470:  export type Bool = boolean;

[14:38:13]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:13]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 42
            Cannot find name 'Buffer'.

      L41:  export type Adds = number;
      L42:  export type _Blob = Buffer|Uint8Array|Blob|string|Readable;
      L43:  export interface Bucket {

[14:38:13]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudtrail.d.ts, line: 141
            Cannot find name 'Buffer'.

     L140:  export type Boolean = boolean;
     L141:  export type ByteBuffer = Buffer|Uint8Array|Blob|string;
     L142:  export interface CreateTrailRequest {

[14:38:13]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/codecommit.d.ts, line: 1539
            Cannot find name 'Buffer'.

    L1539:  export type blob = Buffer|Uint8Array|Blob|string;

[14:38:13]  typescript: .../aws-test/myApp/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts, line: 2581
            Cannot find name 'Buffer'.

    L2580:  export type IdpIdentifiersListType = IdpIdentifierType[];
    L2581:  export type ImageFileType = Buffer|Uint8Array|Blob|string;
    L2582:  export type ImageUrlType = string;

[14:38:13]  typescript: ...ocuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/directconnect.d.ts, line: 992
            Cannot find name 'Buffer'.

     L992:  export type LoaContent = Buffer|Uint8Array|Blob|string;
     L993:  export type LoaContentType = "application/pdf"|string;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dms.d.ts, line: 448
            Cannot find name 'Buffer'.

     L447:  export type CertificateList = Certificate[];
     L448:  export type CertificateWallet = Buffer|Uint8Array|Blob|string;
     L449:  export type CompressionTypeValue = "none"|"gzip"|string;

[14:38:14]  typescript: ...sra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dynamodb.d.ts, line: 466
            Cannot find name 'Buffer'.

     L465:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L466:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L467:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[14:38:14]  typescript: ...uments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dynamodbstreams.d.ts, line: 92
            Cannot find name 'Buffer'.

      L92:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
      L93:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ec2.d.ts, line: 3026
            Cannot find name 'Buffer'.

    L3025:  export type BillingProductList = String[];
    L3026:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L3027:  export interface BlobAttributeValue {

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ecr.d.ts, line: 767
            Cannot find name 'Buffer'.

     L766:  export type LayerList = Layer[];
     L767:  export type LayerPartBlob = Buffer|Uint8Array|Blob|string;
     L768:  export type LayerSizeInBytes = number;

[14:38:14]  typescript: ...sra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/firehose.d.ts, line: 156
            Cannot find name 'Buffer'.

     L156:  export type Data = Buffer|Uint8Array|Blob|string;
     L157:  export type DataTableColumns = string;

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/glacier.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/glacier.d.ts, line: 1313
            Cannot find name 'Buffer'.

    L1312:  export type StorageClass = "STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"|string;
    L1313:  export type Stream = Buffer|Uint8Array|Blob|string|Readable;
    L1314:  export type TagKey = string;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iam.d.ts, line: 1112
            Cannot find name 'Buffer'.

    L1112:  export type BootstrapDatum = Buffer|Uint8Array|Blob|string;
    L1113:  export interface ChangePasswordRequest {

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iam.d.ts, line: 3106
            Cannot find name 'Buffer'.

    L3106:  export type ReportContentType = Buffer|Uint8Array|Blob|string;
    L3107:  export type ReportFormatType = "text/csv"|string;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iot.d.ts, line: 4325
            Cannot find name 'Buffer'.

    L4324:    disableAllLogs?: DisableAllLogs;
    L4326:  export type Signature = Buffer|Uint8Array|Blob|string;

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iotdata.d.ts, line: 73
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iotdata.d.ts, line: 74
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;
      L75:  export interface PublishRequest {

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesis.d.ts, line: 237
            Cannot find name 'Buffer'.

     L237:  export type Data = Buffer|Uint8Array|Blob|string;
     L238:  export interface DecreaseStreamRetentionPeriodInput {

[14:38:14]  typescript: ...Karya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...Karya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 121
            Cannot find name 'Buffer'.

     L120:  export type PageLimit = number;
     L121:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
     L122:  export type StreamName = string;

[14:38:14]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 53
            Cannot find name 'Buffer'.

      L53:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
      L54:  export type ResourceARN = string;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kms.d.ts, line: 328
            Cannot find name 'Buffer'.

     L328:  export type CiphertextType = Buffer|Uint8Array|Blob|string;
     L329:  export interface CreateAliasRequest {

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kms.d.ts, line: 962
            Cannot find name 'Buffer'.

     L961:  export type PendingWindowInDaysType = number;
     L962:  export type PlaintextType = Buffer|Uint8Array|Blob|string;
     L963:  export type PolicyNameList = PolicyNameType[];

[14:38:14]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 372
            Cannot find name 'Buffer'.

     L371:  export type BatchSize = number;
     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;

[14:38:14]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 373
            Cannot find name 'Buffer'.

     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
     L374:  export type Boolean = boolean;

[14:38:14]  typescript: ...evKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexmodelbuildingservice.d.ts, line: 306
            Cannot find name 'Buffer'.

     L305:  export type AliasNameOrListAll = string;
     L306:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L307:  export type Boolean = boolean;

[14:38:14]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexruntime.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexruntime.d.ts, line: 35
            Cannot find name 'Buffer'.

      L34:  export type AttributesString = string;
      L35:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
      L36:  export type BotAlias = string;

[14:38:14]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[14:38:14]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 199
            Cannot find name 'Buffer'.

     L198:  export type PathNaming = string;
     L199:  export type PayloadBlob = Buffer|Uint8Array|Blob|string|Readable;
     L200:  export interface PutObjectRequest {

[14:38:14]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mobile.d.ts, line: 106
            Cannot find name 'Buffer'.

     L105:  export type ConsoleUrl = string;
     L106:  export type Contents = Buffer|Uint8Array|Blob|string;
     L107:  export interface CreateProjectRequest {

[14:38:14]  typescript: ... Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/polly.d.ts, line: 8
            Cannot find module 'stream'.

       L7:  import {Presigner as presigner} from '../lib/polly/presigner';
       L8:  import {Readable} from 'stream';
       L9:  interface Blob {}

[14:38:14]  typescript: ... Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/polly.d.ts, line: 70
            Cannot find name 'Buffer'.

      L69:  export type Alphabet = string;
      L70:  export type AudioStream = Buffer|Uint8Array|Blob|string|Readable;
      L71:  export type ContentType = string;

[14:38:14]  typescript: .../Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/rekognition.d.ts, line: 1135
            Cannot find name 'Buffer'.

    L1135:  export type ImageBlob = Buffer|Uint8Array|Blob|string;
    L1136:  export type ImageId = string;

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 10
            Cannot find module 'stream'.

       L9:  import {PresignedPost as presigned_post} from '../lib/s3/presigned_post';
      L10:  import {Readable} from 'stream';
      L11:  interface Blob {}

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 777
            Cannot find name 'Buffer'.

     L776:  export type AnalyticsS3ExportFileFormat = "CSV"|string;
     L777:  export type Body = Buffer|Uint8Array|Blob|string|Readable;
     L778:  export interface Bucket {

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 1131
            Cannot find name 'Buffer'.

    L1130:  export type CopySourceSSECustomerAlgorithm = string;
    L1131:  export type CopySourceSSECustomerKey = Buffer|Uint8Array|Blob|string;
    L1132:  export type CopySourceSSECustomerKeyMD5 = string;

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 3473
            Cannot find name 'Buffer'.

    L3472:  export type SSECustomerAlgorithm = string;
    L3473:  export type SSECustomerKey = Buffer|Uint8Array|Blob|string;
    L3474:  export type SSECustomerKeyMD5 = string;

[14:38:14]  typescript: ...ments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sagemakerruntime.d.ts, line: 24
            Cannot find name 'Buffer'.

      L23:  declare namespace SageMakerRuntime {
      L24:    export type BodyBlob = Buffer|Uint8Array|Blob|string;
      L25:    export type EndpointName = string;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ses.d.ts, line: 1513
            Cannot find name 'Buffer'.

    L1513:    Data: RawMessageData;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sns.d.ts, line: 275
            Cannot find name 'Buffer'.

     L275:  export type Binary = Buffer|Uint8Array|Blob|string;
     L276:  export interface CheckIfPhoneNumberIsOptedOutInput {

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sqs.d.ts, line: 216
            Cannot find name 'Buffer'.

     L215:  export type BatchResultErrorEntryList = BatchResultErrorEntry[];
     L216:  export type Binary = Buffer|Uint8Array|Blob|string;
     L217:  export type BinaryList = Binary[];

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ssm.d.ts, line: 4580
            Cannot find name 'Buffer'.

    L4580:  export type MaintenanceWindowLambdaPayload = Buffer|Uint8Array|Blob|string;
    L4581:  export type MaintenanceWindowLambdaQualifier = string;

[14:38:14]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/support.d.ts, line: 336
            Cannot find name 'Buffer'.

     L336:  export type Data = Buffer|Uint8Array|Blob|string;
     L337:  export interface DescribeAttachmentRequest {

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/waf.d.ts, line: 604
            Cannot find name 'Buffer'.

     L603:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L604:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L605:  export interface ByteMatchTuple {

[14:38:14]  typescript: .../Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/wafregional.d.ts, line: 648
            Cannot find name 'Buffer'.

     L647:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L648:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L649:  export interface ByteMatchTuple {

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/config.d.ts, line: 1
            Cannot find module 'http'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';

[14:38:14]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/config.d.ts, line: 2
            Cannot find module 'https'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';
       L3:  import {AWSError} from './error';

[14:38:14]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 2
            Cannot find module 'stream'.

       L1:  import DynamoDB = require('../../clients/dynamodb');
       L2:  import * as stream from 'stream';
       L3:  import {Request} from '../request';

[14:38:14]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 93
            Cannot find name 'Buffer'.

      L93:      export type binaryType = Buffer|File|Blob|ArrayBuffer|DataView|Int8Array|Uint8Array|Uint8ClampedArray|In

[14:38:14]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 274
            Cannot find name 'Buffer'.

     L273:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L274:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L275:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[14:38:14]  typescript: ...ra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/http_response.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  interface XMLHttpRequest {}

[14:38:14]  typescript: ...ra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/http_response.d.ts, line: 14
            Cannot find name 'Buffer'.

      L14:  body: string|Buffer|Uint8Array;

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/request.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  import {Service} from './service';

[14:38:14]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/request.d.ts, line: 132
            Cannot find name 'Buffer'.

     L132:  on(event: "httpData", listener: (chunk: Buffer|Uint8Array, response: Response<D, E>) => void): Request<D, E>

[14:38:14]  typescript: ...Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/services/glacier.d.ts, line: 10
            Cannot find name 'Buffer'.

      L10:      computeChecksums(data: Buffer|string): GlacierComputeChecksumsOutput;

[14:38:14]  typescript: ...sers/Aditya Misra/Documents/DevKarya/aws-test/myApp/src/pages/account/account.ts, line: 44
            Type 'Object' is not assignable to type 'string'.

      L43:    Storage.get(this.userId + '/avatar')
      L44:      .then(url => this.avatarPhoto = url);

[14:38:14]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/src/pages/confirmSignIn/confirmSignIn.ts, line: 25
            Expected 3 arguments, but got 2.

      L24:  confirm() {
      L25:    Auth.confirmSignIn(this.user, this.code)
      L26:      .then(() => this.navCtrl.push(TabsPage))

Error: Failed to transpile program
    at new BuildError (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:159:20
    at new Promise (<anonymous>)
    at transpileWorker (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
    at Object.transpile (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
    at C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\build.js:109:82
    at <anonymous>
[14:38:14]  copy finished in 16.49 s

C:\Users\Aditya Misra\Documents\aws-test\myApp>npm run build

C:\Users\Aditya Misra\Documents\aws-test\myApp>npm run build

> [email protected] build C:\Users\Aditya Misra\Documents\aws-test\myApp
> ionic-app-scripts build

[15:36:56]  ionic-app-scripts 3.1.10
[15:36:56]  build dev started ...
[15:36:56]  clean started ...
[15:36:56]  clean finished in 4 ms
[15:36:56]  copy started ...
[15:36:57]  deeplinks started ...
[15:36:57]  deeplinks finished in 64 ms
[15:36:57]  transpile started ...
[15:37:08]  typescript: ...test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 1
            Cannot find type definition file for 'paho-mqtt'.

       L1:  import { Client } from 'paho-mqtt';
       L2:  import * as Observable from 'zen-observable';

[15:37:08]  typescript: ...test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2
            Cannot find type definition file for 'zen-observable'.

       L1:  import { Client } from 'paho-mqtt';
       L2:  import * as Observable from 'zen-observable';
       L3:  import { AbstractPubSubProvider } from './PubSubProvider';

[15:37:08]  typescript: ...aws-test/myApp/node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import * as Observable from 'zen-observable';
       L2:  import { PubSubProvider, ProvidertOptions } from '../types';

[15:37:08]  typescript: ...ocuments/DevKarya/aws-test/myApp/node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import '../Common/Polyfills';
       L2:  import * as Observable from 'zen-observable';

[15:37:08]  typescript: .../DevKarya/aws-test/myApp/node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
            Cannot find type definition file for 'zen-observable'.

       L1:  import * as Observable from 'zen-observable';
       L2:  import { ProvidertOptions } from './PubSub';

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 108
            Cannot find name 'Buffer'.

     L107:  export type CertificateBody = string;
     L108:  export type CertificateBodyBlob = Buffer|Uint8Array|Blob|string;
     L109:  export type CertificateChain = string;

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 110
            Cannot find name 'Buffer'.

     L109:  export type CertificateChain = string;
     L110:  export type CertificateChainBlob = Buffer|Uint8Array|Blob|string;
     L111:  export interface CertificateDetail {

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/acm.d.ts, line: 401
            Cannot find name 'Buffer'.

     L400:  export type NextToken = string;
     L401:  export type PrivateKeyBlob = Buffer|Uint8Array|Blob|string;
     L402:  export type RecordType = "CNAME"|string;

[15:37:08]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/apigateway.d.ts, line: 1146
            Cannot find name 'Buffer'.

    L1146:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L1147:  export type Boolean = boolean;

[15:37:08]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/appsync.d.ts, line: 248
            Cannot find name 'Buffer'.

     L247:  export type AuthenticationType = "API_KEY"|"AWS_IAM"|"AMAZON_COGNITO_USER_POOLS"|string;
     L248:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L249:  export type Boolean = boolean;

[15:37:08]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/clouddirectory.d.ts, line: 1469
            Cannot find name 'Buffer'.

    L1469:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
    L1470:  export type Bool = boolean;

[15:37:08]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:08]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudsearchdomain.d.ts, line: 42
            Cannot find name 'Buffer'.

      L41:  export type Adds = number;
      L42:  export type _Blob = Buffer|Uint8Array|Blob|string|Readable;
      L43:  export interface Bucket {

[15:37:08]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/cloudtrail.d.ts, line: 141
            Cannot find name 'Buffer'.

     L140:  export type Boolean = boolean;
     L141:  export type ByteBuffer = Buffer|Uint8Array|Blob|string;
     L142:  export interface CreateTrailRequest {

[15:37:08]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/codecommit.d.ts, line: 1539
            Cannot find name 'Buffer'.

    L1539:  export type blob = Buffer|Uint8Array|Blob|string;

[15:37:08]  typescript: .../aws-test/myApp/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts, line: 2581
            Cannot find name 'Buffer'.

    L2580:  export type IdpIdentifiersListType = IdpIdentifierType[];
    L2581:  export type ImageFileType = Buffer|Uint8Array|Blob|string;
    L2582:  export type ImageUrlType = string;

[15:37:08]  typescript: ...ocuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/directconnect.d.ts, line: 992
            Cannot find name 'Buffer'.

     L992:  export type LoaContent = Buffer|Uint8Array|Blob|string;
     L993:  export type LoaContentType = "application/pdf"|string;

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dms.d.ts, line: 448
            Cannot find name 'Buffer'.

     L447:  export type CertificateList = Certificate[];
     L448:  export type CertificateWallet = Buffer|Uint8Array|Blob|string;
     L449:  export type CompressionTypeValue = "none"|"gzip"|string;

[15:37:08]  typescript: ...sra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dynamodb.d.ts, line: 466
            Cannot find name 'Buffer'.

     L465:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L466:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L467:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:37:08]  typescript: ...uments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/dynamodbstreams.d.ts, line: 92
            Cannot find name 'Buffer'.

      L92:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
      L93:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ec2.d.ts, line: 3026
            Cannot find name 'Buffer'.

    L3025:  export type BillingProductList = String[];
    L3026:  export type _Blob = Buffer|Uint8Array|Blob|string;
    L3027:  export interface BlobAttributeValue {

[15:37:08]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ecr.d.ts, line: 767
            Cannot find name 'Buffer'.

     L766:  export type LayerList = Layer[];
     L767:  export type LayerPartBlob = Buffer|Uint8Array|Blob|string;
     L768:  export type LayerSizeInBytes = number;

[15:37:08]  typescript: ...sra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/firehose.d.ts, line: 156
            Cannot find name 'Buffer'.

     L156:  export type Data = Buffer|Uint8Array|Blob|string;
     L157:  export type DataTableColumns = string;

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/glacier.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/glacier.d.ts, line: 1313
            Cannot find name 'Buffer'.

    L1312:  export type StorageClass = "STANDARD"|"REDUCED_REDUNDANCY"|"STANDARD_IA"|string;
    L1313:  export type Stream = Buffer|Uint8Array|Blob|string|Readable;
    L1314:  export type TagKey = string;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iam.d.ts, line: 1112
            Cannot find name 'Buffer'.

    L1112:  export type BootstrapDatum = Buffer|Uint8Array|Blob|string;
    L1113:  export interface ChangePasswordRequest {

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iam.d.ts, line: 3106
            Cannot find name 'Buffer'.

    L3106:  export type ReportContentType = Buffer|Uint8Array|Blob|string;
    L3107:  export type ReportFormatType = "text/csv"|string;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iot.d.ts, line: 4325
            Cannot find name 'Buffer'.

    L4324:    disableAllLogs?: DisableAllLogs;
    L4326:  export type Signature = Buffer|Uint8Array|Blob|string;

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iotdata.d.ts, line: 73
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/iotdata.d.ts, line: 74
            Cannot find name 'Buffer'.

      L73:  export type JsonDocument = Buffer|Uint8Array|Blob|string;
      L74:  export type Payload = Buffer|Uint8Array|Blob|string;
      L75:  export interface PublishRequest {

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesis.d.ts, line: 237
            Cannot find name 'Buffer'.

     L237:  export type Data = Buffer|Uint8Array|Blob|string;
     L238:  export interface DecreaseStreamRetentionPeriodInput {

[15:37:09]  typescript: ...Karya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...Karya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts, line: 121
            Cannot find name 'Buffer'.

     L120:  export type PageLimit = number;
     L121:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
     L122:  export type StreamName = string;

[15:37:09]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...ents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kinesisvideomedia.d.ts, line: 53
            Cannot find name 'Buffer'.

      L53:  export type Payload = Buffer|Uint8Array|Blob|string|Readable;
      L54:  export type ResourceARN = string;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kms.d.ts, line: 328
            Cannot find name 'Buffer'.

     L328:  export type CiphertextType = Buffer|Uint8Array|Blob|string;
     L329:  export interface CreateAliasRequest {

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/kms.d.ts, line: 962
            Cannot find name 'Buffer'.

     L961:  export type PendingWindowInDaysType = number;
     L962:  export type PlaintextType = Buffer|Uint8Array|Blob|string;
     L963:  export type PolicyNameList = PolicyNameType[];

[15:37:09]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 372
            Cannot find name 'Buffer'.

     L371:  export type BatchSize = number;
     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;

[15:37:09]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lambda.d.ts, line: 373
            Cannot find name 'Buffer'.

     L372:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L373:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
     L374:  export type Boolean = boolean;

[15:37:09]  typescript: ...evKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexmodelbuildingservice.d.ts, line: 306
            Cannot find name 'Buffer'.

     L305:  export type AliasNameOrListAll = string;
     L306:  export type _Blob = Buffer|Uint8Array|Blob|string;
     L307:  export type Boolean = boolean;

[15:37:09]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexruntime.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...a/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/lexruntime.d.ts, line: 35
            Cannot find name 'Buffer'.

      L34:  export type AttributesString = string;
      L35:  export type BlobStream = Buffer|Uint8Array|Blob|string|Readable;
      L36:  export type BotAlias = string;

[15:37:09]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 7
            Cannot find module 'stream'.

       L6:  import {ConfigBase as Config} from '../lib/config';
       L7:  import {Readable} from 'stream';
       L8:  interface Blob {}

[15:37:09]  typescript: ...cuments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mediastoredata.d.ts, line: 199
            Cannot find name 'Buffer'.

     L198:  export type PathNaming = string;
     L199:  export type PayloadBlob = Buffer|Uint8Array|Blob|string|Readable;
     L200:  export interface PutObjectRequest {

[15:37:09]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/mobile.d.ts, line: 106
            Cannot find name 'Buffer'.

     L105:  export type ConsoleUrl = string;
     L106:  export type Contents = Buffer|Uint8Array|Blob|string;
     L107:  export interface CreateProjectRequest {

[15:37:09]  typescript: ... Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/polly.d.ts, line: 8
            Cannot find module 'stream'.

       L7:  import {Presigner as presigner} from '../lib/polly/presigner';
       L8:  import {Readable} from 'stream';
       L9:  interface Blob {}

[15:37:09]  typescript: ... Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/polly.d.ts, line: 70
            Cannot find name 'Buffer'.

      L69:  export type Alphabet = string;
      L70:  export type AudioStream = Buffer|Uint8Array|Blob|string|Readable;
      L71:  export type ContentType = string;

[15:37:09]  typescript: .../Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/rekognition.d.ts, line: 1135
            Cannot find name 'Buffer'.

    L1135:  export type ImageBlob = Buffer|Uint8Array|Blob|string;
    L1136:  export type ImageId = string;

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 10
            Cannot find module 'stream'.

       L9:  import {PresignedPost as presigned_post} from '../lib/s3/presigned_post';
      L10:  import {Readable} from 'stream';
      L11:  interface Blob {}

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 777
            Cannot find name 'Buffer'.

     L776:  export type AnalyticsS3ExportFileFormat = "CSV"|string;
     L777:  export type Body = Buffer|Uint8Array|Blob|string|Readable;
     L778:  export interface Bucket {

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 1131
            Cannot find name 'Buffer'.

    L1130:  export type CopySourceSSECustomerAlgorithm = string;
    L1131:  export type CopySourceSSECustomerKey = Buffer|Uint8Array|Blob|string;
    L1132:  export type CopySourceSSECustomerKeyMD5 = string;

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/s3.d.ts, line: 3473
            Cannot find name 'Buffer'.

    L3472:  export type SSECustomerAlgorithm = string;
    L3473:  export type SSECustomerKey = Buffer|Uint8Array|Blob|string;
    L3474:  export type SSECustomerKeyMD5 = string;

[15:37:09]  typescript: ...ments/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sagemakerruntime.d.ts, line: 24
            Cannot find name 'Buffer'.

      L23:  declare namespace SageMakerRuntime {
      L24:    export type BodyBlob = Buffer|Uint8Array|Blob|string;
      L25:    export type EndpointName = string;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ses.d.ts, line: 1513
            Cannot find name 'Buffer'.

    L1513:    Data: RawMessageData;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sns.d.ts, line: 275
            Cannot find name 'Buffer'.

     L275:  export type Binary = Buffer|Uint8Array|Blob|string;
     L276:  export interface CheckIfPhoneNumberIsOptedOutInput {

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/sqs.d.ts, line: 216
            Cannot find name 'Buffer'.

     L215:  export type BatchResultErrorEntryList = BatchResultErrorEntry[];
     L216:  export type Binary = Buffer|Uint8Array|Blob|string;
     L217:  export type BinaryList = Binary[];

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/ssm.d.ts, line: 4580
            Cannot find name 'Buffer'.

    L4580:  export type MaintenanceWindowLambdaPayload = Buffer|Uint8Array|Blob|string;
    L4581:  export type MaintenanceWindowLambdaQualifier = string;

[15:37:09]  typescript: ...isra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/support.d.ts, line: 336
            Cannot find name 'Buffer'.

     L336:  export type Data = Buffer|Uint8Array|Blob|string;
     L337:  export interface DescribeAttachmentRequest {

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/waf.d.ts, line: 604
            Cannot find name 'Buffer'.

     L603:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L604:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L605:  export interface ByteMatchTuple {

[15:37:09]  typescript: .../Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/clients/wafregional.d.ts, line: 648
            Cannot find name 'Buffer'.

     L647:  export type ByteMatchSetUpdates = ByteMatchSetUpdate[];
     L648:  export type ByteMatchTargetString = Buffer|Uint8Array|Blob|string;
     L649:  export interface ByteMatchTuple {

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/config.d.ts, line: 1
            Cannot find module 'http'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';

[15:37:09]  typescript: ...tya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/config.d.ts, line: 2
            Cannot find module 'https'.

       L1:  import {Agent as httpAgent} from 'http';
       L2:  import {Agent as httpsAgent} from 'https';
       L3:  import {AWSError} from './error';

[15:37:09]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 2
            Cannot find module 'stream'.

       L1:  import DynamoDB = require('../../clients/dynamodb');
       L2:  import * as stream from 'stream';
       L3:  import {Request} from '../request';

[15:37:09]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 93
            Cannot find name 'Buffer'.

      L93:      export type binaryType = Buffer|File|Blob|ArrayBuffer|DataView|Int8Array|Uint8Array|Uint8ClampedArray|In

[15:37:09]  typescript: ...s/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts, line: 274
            Cannot find name 'Buffer'.

     L273:  export type BatchWriteItemRequestMap = {[key: string]: WriteRequests};
     L274:  export type BinaryAttributeValue = Buffer|Uint8Array|Blob|string;
     L275:  export type BinarySetAttributeValue = BinaryAttributeValue[];

[15:37:09]  typescript: ...ra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/http_response.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  interface XMLHttpRequest {}

[15:37:09]  typescript: ...ra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/http_response.d.ts, line: 14
            Cannot find name 'Buffer'.

      L14:  body: string|Buffer|Uint8Array;

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/request.d.ts, line: 1
            Cannot find module 'stream'.

       L1:  import * as stream from 'stream';
       L2:  import {Service} from './service';

[15:37:09]  typescript: ...ya Misra/Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/request.d.ts, line: 132
            Cannot find name 'Buffer'.

     L132:  on(event: "httpData", listener: (chunk: Buffer|Uint8Array, response: Response<D, E>) => void): Request<D, E>

[15:37:09]  typescript: ...Documents/DevKarya/aws-test/myApp/node_modules/aws-sdk/lib/services/glacier.d.ts, line: 10
            Cannot find name 'Buffer'.

      L10:      computeChecksums(data: Buffer|string): GlacierComputeChecksumsOutput;

[15:37:09]  typescript: ...sers/Aditya Misra/Documents/DevKarya/aws-test/myApp/src/pages/account/account.ts, line: 44
            Type 'Object' is not assignable to type 'string'.

      L43:    Storage.get(this.userId + '/avatar')
      L44:      .then(url => this.avatarPhoto = url);

[15:37:09]  typescript: ...Misra/Documents/DevKarya/aws-test/myApp/src/pages/confirmSignIn/confirmSignIn.ts, line: 25
            Expected 3 arguments, but got 2.

      L24:  confirm() {
      L25:    Auth.confirmSignIn(this.user, this.code)
      L26:      .then(() => this.navCtrl.push(TabsPage))

[15:37:09]  ionic-app-script task: "build"
[15:37:09]  Error: Failed to transpile program
Error: Failed to transpile program
    at new BuildError (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:159:20
    at new Promise (<anonymous>)
    at transpileWorker (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
    at Object.transpile (C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
    at C:\Users\Aditya Misra\Documents\aws-test\myApp\node_modules\@ionic\app-scripts\dist\build.js:109:82
    at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Aditya Misra\AppData\Roaming\npm-cache\_logs\2018-06-30T10_07_09_260Z-debug.log

Can not run "npm run tsc"

Starter Type:
Starter Template:

Description:

when I download the code and try to compile it using "npm run tsc", I found these compilation errors.

@ tsc G:\Code\js\starters
tsc

src/commands/build.ts:25:9 - error TS2416: Property 'getMetadata' in type 'BuildCommand' is not assignable to the same property in base type 'Command'.
Type '() => Promise<{ name: string; description: string; inputs: { name: string; description: string; }...' is not assignable to type '() => Promise<CommandMetadata<CommandMetadataInput, CommandMetadataOption>>'.
Type 'Promise<{ name: string; description: string; inputs: { name: string; description: string; }[]; }>' is not assignable to type 'Promise<CommandMetadata<CommandMetadataInput, CommandMetadataOption>>'.
Type '{ name: string; description: string; inputs: { name: string; description: string; }[]; }' is not assignable to type 'CommandMetadata<CommandMetadataInput, CommandMetadataOption>'.
Property 'summary' is missing in type '{ name: string; description: string; inputs: { name: string; description: string; }[]; }'.

25 async getMetadata() {
~~~~~~~~~~~

src/commands/deploy.ts:20:9 - error TS2416: Property 'getMetadata' in type 'DeployCommand' is not assignable to the same property in base type 'Command'.
Type '() => Promise<{ name: string; description: string; options: ({ name: string; description: string;...' is not assignable to type '() => Promise<CommandMetadata<CommandMetadataInput, CommandMetadataOption>>'.
Type 'Promise<{ name: string; description: string; options: ({ name: string; description: string; defau...' is not assignable to type 'Promise<CommandMetadata<CommandMetadataInput, CommandMetadataOption>>'.
Type '{ name: string; description: string; options: ({ name: string; description: string; default: stri...' is not assignable to type 'CommandMetadata<CommandMetadataInput, CommandMetadataOption>'.
Property 'summary' is missing in type '{ name: string; description: string; options: ({ name: string; description: string; default: stri...'.

20 async getMetadata() {
~~~~~~~~~~~

src/index.ts:7:9 - error TS2416: Property 'getMetadata' in type 'StartersNamespace' is not assignable to the same property in base type 'Namespace'.
Type '() => Promise<{ name: string; description: string; }>' is not assignable to type '() => Promise'.
Type 'Promise<{ name: string; description: string; }>' is not assignable to type 'Promise'.
Type '{ name: string; description: string; }' is not assignable to type 'NamespaceMetadata'.
Property 'summary' is missing in type '{ name: string; description: string; }'.

7 async getMetadata() {
~~~~~~~~~~~

src/index.ts:16:46 - error TS2345: Argument of type 'this' is not assignable to parameter of type 'Namespace'.
Type 'StartersNamespace' is not assignable to type 'Namespace'.
Types of property 'getMetadata' are incompatible.
Type '() => Promise<{ name: string; description: string; }>' is not assignable to type '() => Promise'.
Type 'Promise<{ name: string; description: string; }>' is not assignable to type 'Promise'.
Type '{ name: string; description: string; }' is not assignable to type 'NamespaceMetadata'.
Property 'summary' is missing in type '{ name: string; description: string; }'.

16 ['build', async () => new BuildCommand(this)],
~~~~

src/index.ts:17:48 - error TS2345: Argument of type 'this' is not assignable to parameter of type 'Namespace'.

17 ['deploy', async () => new DeployCommand(this)],
~~~~

src/index.ts:25:9 - error TS2554: Expected 1 arguments, but got 3.

25 await execute(ns, pargv, env);
~~~~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ tsc: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DavidStark\AppData\Roaming\npm-cache_logs\2018-04-04T00_52_02_036Z-debug.log

My ionic info:

cli packages: (C:\Users\DavidStark\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

System:

Node : v8.9.0
npm  : 5.5.1
OS   : Windows 10

Misc:

backend : pro

[email protected]

<paste here>

Other Information:

Angular Starter(Side Menu) ion-router-outlet not updating after route change

Starter Type: angular
Starter Template: side menu

Description:

Hello i tried the angular starter for side menu here https://github.com/ionic-team/starters/tree/master/angular/official/sidemenu . The App is correctly activating the defualt route(home).If i click on list route in sidemenu the url gets changed but the content is not changing. Can you please tell me whether it is known issue or am i missing something?
My ionic info:

cli packages: (C:\Users\Shiva\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

System:

    Node : v8.9.4
    npm  : 5.6.0
    OS   : Windows 10

Misc:

    backend : legacy

Other Information:

Thanks in advance, Abhilash

Document how to test a new starter better

In CONTRIBUTING, it says:

Copy the generated starter into a different directory and test it!

I can build my starter, cd into it in the build directory, and run npm i && ionic serve from there, but it seems like there might be a better way? Is this the best way to test a new starter?

Uncaught Exception[Object Object] using Graphql in Appsync with AWS Amplify in Ionic AWS Starter Template

Starter Type: ionic start myApp aws
Starter Template: AWS Starter Templete

Description:

When I started using the AWS Template of Ionic, The AWS Amplify Library does not include the Graphql Modules in the beginning, I Updated the AWS Amplify Library using "npm install aws-amplify@latest". After this whenever i am using API.Graphql function, it is showcasing the below error. I have already checked the documentation but it is showing nothing extra apart from this. Please help me out on this. Stuck !!

This is my function which is a Query i need to pass this query inside my Graphql function as stated in AWS Amplify Documentation. But it is returning Uncaught Exception[Object Object].

My ionic info:

cli packages: (C:\Users\Madhav\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v9.4.0
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

screenshot 89

confirmSignIn function requires 3 arguments, but gets 2.

Starter Type: ionic-angular
Starter Template: official/aws

Description:
I just tried this starter following the README instructions but I get this error:

typescript: src/pages/confirmSignIn/confirmSignIn.ts, line: 25
Expected 3 arguments, but got 2.

confirm() {
    Auth.confirmSignIn(this.user, this.code)
    .then(() => this.navCtrl.push(TabsPage))

My ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2 
    Node       : v8.9.3
    npm        : 6.1.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.4 Build version 9F1027a 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Other Information:

Now the function confirmSignIn requires 3 arguments: user, code and mfaType. In this starter there isn't the mfaType argument.

More info here:
https://aws.github.io/aws-amplify/media/authentication_guide.html#sign-in

how to enable sidemenu on super starter?

It seems there is code for menu there already, I am wondering how to enable it, tried to change it in tutorial.ts: this.menu.enable(false); - >this.menu.enable(true);
but it didn't work. Thanks!

[ionic v4] ionic cordova run android fails (to load resources) with any fresh starter template

Starter Type: angular
Starter Template: blank, side-menu & tabs

Description:

Running ionic cordova run android in a freshly generated starter template folder will show a blank page on any device.

Using chrome remote devices tool it appears it fails to load resources:

runtime.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:54.936 styles.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:54.936 polyfills.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:54.938 vendor.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:54.938 cordova.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:54.940 main.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
12:47:55.021 /assets/icon/favicon.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND

My ionic info:

$ ionic info
√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)          : 4.1.2 (C:\Users\xxx\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.8
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.8
   @ionic/schematics-angular  : 1.0.6

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.3.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.3, (and 4 other plugins)

System:

   NodeJS : v9.9.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.1.0
   OS     : Windows 7

How to reproduce:

ionic start i4-sidemenu sidemenu --type=angular
cd i4-sidemenu
ionic cordova prepare android
ionic cordova run android --verbose

Other Information:

A base path change fixes the issue but it seems to break angular router navigation.
<base href="." />

Note: It works with --live-reload: the device is able to reach the files through the network.

Error: Can't resolve './app.module.ngfactory' in producation mode

Hello,
to produce an error I just uses the following commands:

ionic start testApp
cd testApp/
ionic cordova build android --release --prod

Error description:
Error: ./src/app/main.ts
Module not found: Error: Can't resolve './app.module.ngfactory' in '/home/user/tmpfs/testApp/src/app'
resolve './app.module.ngfactory' in '/home/user/tmpfs/testApp/src/app'
using description file: /home/user/tmpfs/testApp/package.json (relative path: ./src/app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/user/tmpfs/testApp/package.json (relative path: ./src/app)
using description file: /home/user/tmpfs/testApp/package.json (relative path: ./src/app/app.module.ngfactory)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/user/tmpfs/testApp/src/app/app.module.ngfactory doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/home/user/tmpfs/testApp/src/app/app.module.ngfactory.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/user/tmpfs/testApp/src/app/app.module.ngfactory.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/user/tmpfs/testApp/src/app/app.module.ngfactory.json doesn't exist
as directory
/home/user/tmpfs/testApp/src/app/app.module.ngfactory doesn't exist
[/home/user/tmpfs/testApp/src/app/app.module.ngfactory]
[/home/user/tmpfs/testApp/src/app/app.module.ngfactory.ts]
[/home/user/tmpfs/testApp/src/app/app.module.ngfactory.js]
[/home/user/tmpfs/testApp/src/app/app.module.ngfactory.json]
[/home/user/tmpfs/testApp/src/app/app.module.ngfactory]
@ ./src/app/main.ts 2:0-60
at BuildError.Error (native)
at new BuildError (/home/user/tmpfs/testApp/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at callback (/home/user/tmpfs/testApp/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
at emitRecords.err (/home/user/tmpfs/testApp/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/home/user/tmpfs/testApp/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/home/user/tmpfs/testApp/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/home/user/tmpfs/testApp/node_modules/webpack/lib/Compiler.js:368:12)
at next (/home/user/tmpfs/testApp/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/home/user/tmpfs/testApp/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/home/user/tmpfs/testApp/node_modules/tapable/lib/Tapable.js:222:13)

Super template doesn't skip setup or store user persistantly

So here I thought to use the super template and kickstart my application. I saw that it had Users which is nice, but apart from login/signup it doesn't feature remembering the login so whenever you reopen the app, it doesn't show you the welcome/login but keeps you signed in. So an important part seems missing to me: persistent storage of the user.

I like the rest of the code and how it explains various features, but I had hoped it would show me a bit more. Now of course the whole system is already weird because you need an API (which never is documented what in this example should be supported or even a basic mock will do). You are kind of teaching users how to use your framework and it might have given different expectations. I also wonder why you add many pages but don't make them available via navigation to easily browse them. If it had some button to press to popup the rest of the pages, it would make so much more sense and then can also be used better as a demonstration.

The rest of the template looks nice so its just some constructive feedback ;)

ionic 4 - should update angular tabs template

Starter Type: angular
Starter Template: tabs

Description:
the tabs starter still got white screen due to the closed issue #15438, as the current tabs starter has not been updated. i updated the tabs starter manually as stated in 4.0.0-beta.18 (2018-12-13) changelog, and it works fine.

@ionic/angular version

"@ionic/angular": "^4.0.0-beta.19",

aws_cognito_region is not defined

When running ionic serve, the server starts and this message is displayed. I check src/assets/aws-config.jw and it defined aws_cognito_region:

const 'aws_cognito_region' = 'us-west-2';

Screenshot for the error is attached.

screenshot_20180124_222756

Ionic AWS Starter - can't publish the app

I followed the instructions on Ionic AWS Starter and when running awsmobile publish iv got theese errors:

[15:49:46]  typescript: D:/developer/scrum/myapp2/src/pages/account/account.ts, line: 43
            Expected 2 arguments, but got 1.

      L42:  refreshAvatar() {
      L43:    Storage.get(this.userId + '/avatar')
      L44:      .then(url => this.avatarPhoto = url);

[15:49:46]  typescript: D:/developer/scrum/myapp2/src/pages/tasks/tasks.ts, line: 51
            Property 'query' does not exist on type 'void | DocumentClient'. Property 'query' does not exist on type
            'void'.

      L50:  this.db.getDocumentClient()
      L51:    .then(client => client.query(params).promise())
      L52:    .then(data => { this.items = data.Items; })

[15:49:46]  typescript: D:/developer/scrum/myapp2/src/pages/tasks/tasks.ts, line: 82
            Property 'put' does not exist on type 'void | DocumentClient'. Property 'put' does not exist on type 'void'.

      L81:  this.db.getDocumentClient()
      L82:    .then(client => client.put(params).promise())
      L83:    .then(data => this.refreshTasks())

[15:49:46]  typescript: D:/developer/scrum/myapp2/src/pages/tasks/tasks.ts, line: 98
            Property 'delete' does not exist on type 'void | DocumentClient'. Property 'delete' does not exist on type
            'void'.

      L97:  this.db.getDocumentClient()
      L98:    .then(client => client.delete(params).promise())
      L99:    .then(data => this.items.splice(index, 1))

[15:49:46]  ionic-app-script task: "build"
[15:49:46]  Error: Failed to transpile program
Error: Failed to transpile program
    at new BuildError (D:\Developer\scrum\myApp2\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at D:\Developer\scrum\myApp2\node_modules\@ionic\app-scripts\dist\transpile.js:159:20
    at new Promise (<anonymous>)
    at transpileWorker (D:\Developer\scrum\myApp2\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
    at Object.transpile (D:\Developer\scrum\myApp2\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
    at D:\Developer\scrum\myApp2\node_modules\@ionic\app-scripts\dist\build.js:109:82
    at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

AWS Lex chatbot

Anyone integrated AWS lex with Ionic project? Can you please share any article or sample code?

Ionic 4 - RouterModule not used - remove import?

@dwieeb

Starter Type:
angular
Starter Template:
tabs

Description:

RouterModule not used

My ionic info:

C:\ae\adaept.com\aetabs>ionic info
√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)             : 4.3.0 (C:\Users\peter\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.15
   @angular-devkit/build-angular : 0.8.5
   @angular-devkit/schematics    : 0.8.5
   @angular/cli                  : 6.2.5
   @ionic/angular-toolkit        : 1.1.0





System:

   NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10


C:\ae\adaept.com\aetabs>

Other Information:

capture430
capture429
capture428

Adding “tabs” to “blank” starter

I have set up a blank starter using
ionic start myApp blank

Now if I want to add tabs to the bottom part of the app. So what should I do except starting a new app using tabs starter?

Latest version doesn't build because of tsickle error

Starter Type: ionic-angular
Starter Template: super

Description:

If I clone this project and build the super template with the following command:

npm run build -- ionic-angular/official/super

Then cd into build/ionic-angular-official-super and run ionic serve, it fails with the following error:

ionic serve

? Looks like a fresh checkout! No ./node_modules directory found. Would you like to install project dependencies
? Yes
Installing dependencies may take several minutes!
> npm i
✖ Running command - failed!
[ERROR] An error occurred while running npm i (exit code 254):


        npm ERR! path
        /Users/mraible/dev/starters/build/ionic-angular-official-super/node_modules/tsickle/src/main.js
        npm ERR! code ENOENT
        npm ERR! errno -2
        npm ERR! syscall chmod
        npm ERR! enoent ENOENT: no such file or directory, chmod
        '/Users/mraible/dev/starters/build/ionic-angular-official-super/node_modules/tsickle/src/main.js'
        npm ERR! enoent This is related to npm not being able to find a file.
        npm ERR! enoent

My ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

local packages:

    @ionic/app-scripts : 3.1.8
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v9.8.0
    npm  : 5.6.0
    OS   : macOS High Sierra

Misc:

    backend : pro

Icons are not showing up angular sidemenu starter

Starter Type: angular
Starter Template: Sidemenu

Description:
ion-icons are not showing up in the angular sidemenu starter templates

My ionic info:
Ionic:

ionic (Ionic CLI) : 4.0.1 (C:\Users\KrishnaK\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.0
@angular-devkit/core : 0.7.0-rc.3
@angular-devkit/schematics : 0.7.0-rc.3
@angular/cli : 6.0.8
@ionic/ng-toolkit : 1.0.0
@ionic/schematics-angular : 1.0.1

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0

System:

Android SDK Tools : 26.1.1
NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10

Environment:

ANDROID_HOME : C:\Android\android-sdk

Other Information:

No auth token refresh routine

This starter is quite useless to be honest if you are looking for an app which will implement persistent login. Cognito tokens expire after 1 hour. After that token and identityID becomes null. Refreshing the token is not implemented here. When the token is refreshed the IdentityId remains null. This app, the way it is implemented has killed countless hour of my time and 2 other developers. No one can seem to figure out how to do this correctly. I wish someone from AWS finally provided a code here to show how refresh is correctly and how "background token refresh" is handled when the user turns off the app or simply puts in the background.

How to merge project config files (other than package.json) with base

The broader more general question is: How can we specify settings in ionic.starter.json that will merge/override the project's tsconfig.json, .gitignore, etc., similar to how we specify package.json settings in the packageJson property?

Example Scenario

I would like to have a starter that implements the @gshigeto environment variables solution (until we get env out of the box in base). Doing so requires you to add the following to the compilerOptions property of the project's tsconfig.json file:

"baseUrl": "./src",
"paths": {
  "@app/env": [
    "environments/environment"
  ]
}

Furthermore, you also would probably like to automatically add the patterns src/environments/environment* and !src/environments/environment.model.ts to your project's .gitignore file.

Potential Solution

Currently, the ionic.starter.json file has a property for packageJson that merges its properties with the default package.json in <type>/base. Perhaps we could have a couple more fields for .gitignore and tsconfig.json, e.g.

{
  "name": "My Awesome Ionic Starter",
  "baseref": "e0df5226e5cccb1c90bb293df30894b2447c01f9",
  "packageJson": {},
  "gitignore": [
    "src/environments/environment*",
    "!src/environments/environment.module.ts",
  ],
  "tsconfig": {
    "compilerOptions": {
      "baseUrl": "./src",
      "paths": {
        "@app/env": [
          "environments/environment"
        ]
      }
    }
  }
}

An Added Benefit

Another benefit of doing it this way, is that starter authors could include files in their starter templates that are NOT intended to be checked into version control. For example, in the above scenario, I could include src/environments/environment.dev.ts and src/environments/environment.ts in my starter template (with the correct ENV signature), but there would be no chance of those files accidentally getting committed to the app developer's repo since those files are also included in the .gitignore patterns.

Temporary Workaround

For people who might stumble upon this thread prior to resolution, the current behavior is that any files that exist in the starter template override files with the same name in the base. So for now you can just copy those files from the base into your starter, modify them, and make sure they get included in your starter repo.

[ERROR] Cannot perform Ionic serve/watch for project type: angular.

I in turn executed the following command.

npm install -g ionic
ionic start angular-ionic tabs --type angular
npm start

Then there is an error message.

> [email protected] start E:\angular-ionic
> ionic serve
[ERROR] Cannot perform Ionic serve/watch for project type: angular.
        If you'd like the CLI to try to detect your project type, you can unset the type attribute in ionic.config.json.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `ionic serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

node v8.11.1
npm v5.6.0

What should I do to resolve these errors?

cordova-plugin-statusbar not installed

Starter Type: angular, ionic-angular (only checked those)
Starter Template: tabs (only checked this one)

Description:
The npm package @ionic-native/status-bar is installed (ionic-angular, angular) and also a method is called in app.component.ts but the plugin cordova-plugin-statusbar is not installed in config.xml and also not the NPM package.
Leaving you with those warnings:

console.warn: Ionic Native: tried calling StatusBar.hide, but the StatusBar plugin is not installed. 
console.warn: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar' 

Starters for CLI 4

@dwieeb

I am testing CLI 4 rc1 and some issues are reported fixed.
Where do I find the basic starter (or others if they exist yet) so I can see the new additions
and continue testing?

[ERROR] Unable to find starter template for maps - 3.20.0

Starter Type: built-in
Starter Template: maps

Description:

matt@matt-ubuntu-7577:~/w$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial
matt@matt-ubuntu-7577:~/w$ node -v
v8.11.1
matt@matt-ubuntu-7577:~/w$ npm -v
5.6.0
matt@matt-ubuntu-7577:~/w$ ionic -v
3.20.0
matt@matt-ubuntu-7577:~/w$ ionic start ionicClean20180507Maps maps
✖ Looking up starter - failed!
[ERROR] Unable to find starter template for maps

        If this is not a typo, please make sure it is a valid starter template 
        within the starters repo: https://github.com/ionic-team/starters

matt@matt-ubuntu-7577:~/w$ 

My ionic info:
n/a - project fails to generate based on ionic 'maps' starter

Other Information:
Let me know if I am missing anything...

Edit: Not that this is an open issue - just sharing for reference.

Error: Missing credentials in config

I am currently having a big problem with my application witch uses AWS as backend . When i test the application i get an error for the first time the application is installed on the phone or when i serve it on browser .
For the first time after the login immediately I have to load data of the user from the DynamoDB but i get This error

POST https://cognito-identity.us-east-1.amazonaws.com/ 400 ()
Error: Missing credentials in config

So i have consoled the Credentials i found that its all set to null .
After the first refresh of the page (close an open the app on phone).
I noticed that the credentials are no longer empty but still the DynamoDb query not processing .

And for the third refresh everything back to work as wanted .
This made the user experience of my application so bad . so i have to find a solution .

Here is my Login function

 login(username, password) {
    return new Promise((resolve, reject) => {
      
      let user = this.cognito.makeUser(username);
      let authDetails = this.cognito.makeAuthDetails(username, password);

      user.authenticateUser(authDetails, {
        'onSuccess': (result:any) => {

          var logins = {};
          var loginKey = 'cognito-idp.' +
                          aws_cognito_region +
                          '.amazonaws.com/' +
                          aws_user_pools_id;
          logins[loginKey] = result.getIdToken().getJwtToken();

          AWS.config.credentials = new AWS.CognitoIdentityCredentials({
           'IdentityPoolId': aws_cognito_identity_pool_id,
           'Logins': logins
          });
        
    

          AWS.config.credentials.get((err) => {
            if (err) {
              return reject(err);
            }

            this.isAuthenticated().then(() => {
              resolve();
            }).catch((err) => {
              console.log('auth session failed');
            });
          });
          
        },

        'onFailure': (err:any) => {

          console.log('authentication failed');
          reject(err);

        },
        newPasswordRequired: (userAttributes, Password) => {
          // User was signed up by an admin and must provide new
          // password and required attributes, if any, to complete
          // authentication.
          var newPassword;
          console.log(newPassword);
          delete userAttributes.email_verified;
          delete userAttributes.phone_number_verified;

          let addModal = this.modalCtrl.create(ChangePasswordPage );
          addModal.onDidDismiss(data => {

            newPassword = data;
            user.completeNewPasswordChallenge(newPassword, userAttributes, {
              onSuccess: (result:any) => {
                  var logins = {};
                  var loginKey = 'cognito-idp.' +
                                  aws_cognito_region +
                                  '.amazonaws.com/' +
                                  aws_user_pools_id;
                   logins[loginKey] = result.getIdToken().getJwtToken();
        
                   AWS.config.credentials = new AWS.CognitoIdentityCredentials({
                   'IdentityPoolId': aws_cognito_identity_pool_id,
                   'Logins': logins
                  });
        
                   AWS.config.credentials.get((err) => {
                    if (err) {
                      return reject(err);
                    }
        
                  
                    });
                  this.isAuthenticated().then(() => { 
                    resolve();
                  }).catch((err) => {
                    console.log('auth session failed');
                  });
                  
                  
              },
              authSuccess: function (result){
             
                console.log('In the AuthSuccess.');
               
              },
              onFailure: function(err) {
                console.log('In the Error '+err);
               
              }
            }); 
             
             console.log(newPassword);
       
          })
          addModal.present();
          console.log(newPassword);
          
      }
      });
    });
  }

And here is my dynamoDb function :

refreshTasks() {

  console.log( AWS.config.credentials);
  return new Promise((resolve, reject) => {
  var d = new Date();
  var s=  [this.pad(d.getDate()), this.pad(d.getMonth()+1), d.getFullYear()].join('/');
    console.log(s);
 

  const params = {
    'TableName': this.dailyTable,
    
    'KeyConditionExpression':
     "#userId = :userId AND d = :day",
    'ExpressionAttributeNames': {
       '#userId': 'userId'
  },
    'ExpressionAttributeValues': {
       ':userId': AWS.config.credentials.identityId,
       ':day':s.toString()
     },
    'ScanIndexForward': false
  };

  this.db.getDocumentClient().query(params).promise().then((data) => {
    console.log("data loaded");
    
    console.log(data);
    resolve(data);
   
  }).catch((err) => {
    console.log(err);
  });
  });
}

This problem should be fixed as soon as possible so guys i will appreciate any help :) .

AWS template Install starter error

Starter Type:
Ionic
Starter Template:
AWS

Description:
I get an error: (ionic start appname aws)

Not found: https://github.com/driftyco/ionic-starter-aws/archive/master.zip (404)
Please verify the url and try again.
Please verify you are using a valid URL or a valid ionic starter.
View available starter templates: ionic start --list
More info available at:
http://ionicframework.com/getting-started/
https://github.com/driftyco/ionic-cli

Has this moved?

My ionic info:

******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     

 Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)

******************************************************

Your system information:

Cordova CLI: 6.4.0 
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS
Node Version: v6.9.2
Xcode version: Xcode 9.3 Build version 9E145



******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     

 Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)

******************************************************

Other Information:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.