Pages

Friday, March 20, 2020

bug found in EJSS6.0 app generation?

When using EJS_6.0_191124 to generate an app, the following is the error message


[ng] Date: 2020-03-20T01:19:28.620Z - Hash: a58666a19410430197cb
[ng] 95 unchanged chunks
[ng] chunk {default~pages-about-about-module~pages-home-home-module} default~pages-about-about-module~pages-home-home-module.js, default~pages-about-about-module~pages-home-home-module.js.map (default~pages-about-about-module~pages-home-home-module) 942 kB  [rendered]
[ng] chunk {main} main.js, main.js.map (main) 79.6 kB [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 9.83 kB [entry] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 3.88 MB [initial] [rendered]
[ng] Time: 1748ms
[ng] 
[ng] ERROR in ./src/app/app.module.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/app'
[ng] ERROR in ./src/app/app.component.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/app'
[ng] ERROR in ./src/pages/about/about.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/about'
[ng] ERROR in ./src/pages/card/card.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/card'
[ng] ERROR in ./src/pages/external/external.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/external'
[ng] ERROR in ./src/pages/home/home.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/home'
[ng] ERROR in ./src/pages/slides/slides.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/slides'
[ng] ERROR in ./src/pages/tabs/tabs.ts
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/Users/lookang/Public/myappsfolder/MyModelAppv4/src/pages/tabs'
[ng] 「wdm」: Failed to compile.
[ng]     
[ng]     ERROR in src/app/app.component.ts(2,34): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/app/app.component.ts(16,15): error TS2322: Type 'KeyboardOriginal' is not assignable to type 'Provider'.
[ng]       Type 'KeyboardOriginal' is missing the following properties from type 'TypeProvider': apply, call, bind, prototype, and 5 more.
[ng]     src/app/app.component.ts(16,24): error TS2322: Type 'ScreenOrientationOriginal' is not assignable to type 'Provider'.
[ng]       Type 'ScreenOrientationOriginal' is missing the following properties from type 'TypeProvider': apply, call, bind, prototype, and 5 more.
[ng]     src/app/app.component.ts(27,18): error TS2749: 'StatusBar' refers to a value, but is being used as a type here.
[ng]     src/app/app.component.ts(28,21): error TS2749: 'SplashScreen' refers to a value, but is being used as a type here.
[ng]     src/app/app.component.ts(29,17): error TS2749: 'Keyboard' refers to a value, but is being used as a type here.
[ng]     src/app/app.module.ts(3,58): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/app/app.module.ts(42,5): error TS2322: Type 'StatusBarOriginal' is not assignable to type 'Provider'.
[ng]       Type 'StatusBarOriginal' is missing the following properties from type 'TypeProvider': apply, call, bind, prototype, and 5 more.
[ng]     src/app/app.module.ts(43,5): error TS2322: Type 'SplashScreenOriginal' is not assignable to type 'Provider'.
[ng]       Type 'SplashScreenOriginal' is missing the following properties from type 'TypeProvider': apply, call, bind, prototype, and 5 more.
[ng]     src/pages/about/about.ts(2,55): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/about/about.ts(3,26): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/card/card.ts(2,31): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/external/external.ts(2,51): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/external/external.ts(13,4): error TS2554: Expected 2 arguments, but got 1.
[ng]     src/pages/home/home.ts(2,62): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/home/home.ts(15,4): error TS2554: Expected 2 arguments, but got 1.
[ng]     src/pages/slides/slides.ts(2,38): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/tabs/tabs.ts(2,54): error TS2307: Cannot find module 'ionic-angular'.
[ng]     src/pages/tabs/tabs.ts(15,4): error TS2554: Expected 2 arguments, but got 1.
[ng]     


but when EjsS_5.3_190813-beta is used, the app can be generated. provided the HTML head is clean.
i recently added analytics codes that seems to also break the app generation process.


Opens-MacBook-Pro:MyModelAppv4 lookang$ cd /Users/lookang/Public/myappsfolder
Opens-MacBook-Pro:myappsfolder lookang$ ionic start MyModelApp blank 
? ./MyModelApp exists. Overwrite? Yes
Preparing directory ./MyModelApp - done!
Downloading and extracting blank starter - done!

Installing dependencies may take several minutes.

       IONIC  DEVAPP  

 Speed up development with the Ionic DevApp, our fast, on-device testing mobile app

  -  🔑   Test on iOS and Android without Native SDKs
  -  🚀   LiveReload for instant style and JS updates

 -->    Install DevApp: https://bit.ly/ionic-dev-app    <--

────────────────────────────────────────────────────────────

> npm i
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

> fsevents@1.2.12 install /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/@angular/compiler-cli/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> fsevents@1.2.12 install /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/karma/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> fsevents@1.2.12 install /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/watchpack/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> fsevents@1.2.12 install /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/webpack-dev-server/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> core-js@3.6.4 postinstall /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/@angular-devkit/build-angular/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@2.6.11 postinstall /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> @angular/cli@8.3.25 postinstall /Users/lookang/Public/myappsfolder/MyModelApp/node_modules/@angular/cli
> node ./bin/postinstall/script.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN karma-jasmine-html-reporter@1.5.2 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.

added 1487 packages from 1077 contributors and audited 19814 packages in 44.037s

29 packages are looking for funding
  run `npm fund` for details

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
> git init
Initialized empty Git repository in /Users/lookang/Public/myappsfolder/MyModelApp/.git/

     🔥   IONIC  APPFLOW   🔥

 Supercharge your Ionic development with the Ionic Appflow SDK

  -  📲  Push remote updates and skip the app store queue

 Learn more about Ionic Appflow: https://ion.link/appflow

────────────────────────────────────────────────────────────

? Install the free Ionic Appflow SDK and connect your app? No
> git add -A
> git commit -m "Initial commit" --no-gpg-sign
[master (root-commit) b95e77c] Initial commit
 37 files changed, 14571 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 angular.json
 create mode 100644 browserslist
 create mode 100644 e2e/protractor.conf.js
 create mode 100644 e2e/src/app.e2e-spec.ts
 create mode 100644 e2e/src/app.po.ts
 create mode 100644 e2e/tsconfig.json
 create mode 100644 ionic.config.json
 create mode 100644 karma.conf.js
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 src/app/app-routing.module.ts
 create mode 100644 src/app/app.component.html
 create mode 100644 src/app/app.component.scss
 create mode 100644 src/app/app.component.spec.ts
 create mode 100644 src/app/app.component.ts
 create mode 100644 src/app/app.module.ts
 create mode 100644 src/app/home/home.module.ts
 create mode 100644 src/app/home/home.page.html
 create mode 100644 src/app/home/home.page.scss
 create mode 100644 src/app/home/home.page.spec.ts
 create mode 100644 src/app/home/home.page.ts
 create mode 100644 src/assets/icon/favicon.png
 create mode 100644 src/assets/shapes.svg
 create mode 100644 src/environments/environment.prod.ts
 create mode 100644 src/environments/environment.ts
 create mode 100644 src/global.scss
 create mode 100644 src/index.html
 create mode 100644 src/main.ts
 create mode 100644 src/polyfills.ts
 create mode 100644 src/test.ts
 create mode 100644 src/theme/variables.scss
 create mode 100644 src/zone-flags.ts
 create mode 100644 tsconfig.app.json
 create mode 100644 tsconfig.json
 create mode 100644 tsconfig.spec.json
 create mode 100644 tslint.json

[INFO] Next Steps:
       
       - Go to your newly created project: cd ./MyModelApp
       - Run ionic serve within the app directory to see your app
       - Build features and components: https://ion.link/scaffolding-docs
       - Get Ionic DevApp for easy device testing: https://ion.link/devapp
Opens-MacBook-Pro:myappsfolder lookang$ cd ./MyModelApp
Opens-MacBook-Pro:MyModelApp lookang$ ionic serve
> ng run app:serve --host=0.0.0.0 --port=8100
[ng] WARNING: This is a simple server for use in testing or debugging Angular applications
[ng] locally. It hasn't been reviewed for security issues.
[ng] Binding this server to an open connection can result in compromising your application or
[ng] computer. Using a different host than the one passed to the "--host" flag might result in
[ng] websocket connection issues. You might need to use "--disableHostCheck" if that's the
[ng] case.
[ng] 「wds」: Project is running at http://0.0.0.0:8100/webpack-dev-server/
[ng] 「wds」: webpack output is served from /
[ng] 「wds」: 404s will fallback to //index.html
[ng] chunk {common} common.js, common.js.map (common) 22.5 kB  [rendered]
[ng] chunk {core-js-js} core-js-js.js, core-js-js.js.map (core-js-js) 78.7 kB  [rendered]
[ng] chunk {dom-js} dom-js.js, dom-js.js.map (dom-js) 20.2 kB  [rendered]
[ng] chunk {focus-visible-70713a0c-js} focus-visible-70713a0c-js.js, focus-visible-70713a0c-js.js.map (focus-visible-70713a0c-js) 2.15 kB  [rendered]
[ng] chunk {home-home-module} home-home-module.js, home-home-module.js.map (home-home-module) 7.47 kB  [rendered]
[ng] chunk {input-shims-a4fc53ac-js} input-shims-a4fc53ac-js.js, input-shims-a4fc53ac-js.js.map (input-shims-a4fc53ac-js) 13.5 kB  [rendered]
[ng] chunk {ios-transition-b4752795-js} ios-transition-b4752795-js.js, ios-transition-b4752795-js.js.map (ios-transition-b4752795-js) 28.4 kB  [rendered]
[ng] chunk {main} main.js, main.js.map (main) 37.4 kB [initial] [rendered]
[ng] chunk {md-transition-5ee3c425-js} md-transition-5ee3c425-js.js, md-transition-5ee3c425-js.js.map (md-transition-5ee3c425-js) 3.91 kB  [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 297 kB [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 9.65 kB [entry] [rendered]
[ng] chunk {shadow-css-d7d058ec-d59cb009-js} shadow-css-d7d058ec-d59cb009-js.js, shadow-css-d7d058ec-d59cb009-js.js.map (shadow-css-d7d058ec-d59cb009-js) 15.9 kB  [rendered]
[ng] chunk {status-tap-2ec46489-js} status-tap-2ec46489-js.js, status-tap-2ec46489-js.js.map (status-tap-2ec46489-js) 1.79 kB  [rendered]
[ng] chunk {stencil-polyfills-css-shim} stencil-polyfills-css-shim.js, stencil-polyfills-css-shim.js.map (stencil-polyfills-css-shim) 22 kB  [rendered]
[ng] chunk {stencil-polyfills-dom} stencil-polyfills-dom.js, stencil-polyfills-dom.js.map (stencil-polyfills-dom) 19.8 kB  [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 115 kB [initial] [rendered]
[ng] chunk {swipe-back-d2cdbf9a-js} swipe-back-d2cdbf9a-js.js, swipe-back-d2cdbf9a-js.js.map (swipe-back-d2cdbf9a-js) 2.88 kB  [rendered]
[ng] chunk {swiper-bundle-ccdaac54-js} swiper-bundle-ccdaac54-js.js, swiper-bundle-ccdaac54-js.js.map (swiper-bundle-ccdaac54-js) 176 kB  [rendered]
[ng] chunk {tap-click-606f325e-js} tap-click-606f325e-js.js, tap-click-606f325e-js.js.map (tap-click-606f325e-js) 6.38 kB  [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.77 MB [initial] [rendered]
[ng] Date: 2020-03-20T01:30:04.050Z - Hash: fad8afdc6f186df4afd1 - Time: 8643ms
[INFO] ... and 77 additional chunks
[ng] 「wdm」: Compiled successfully.

[INFO] Development server running!
       
       Local: http://localhost:8100
       External: http://172.16.66.0:8100
       
       Use Ctrl+C to quit this process

[INFO] Browser window opened to http://localhost:8100!

[ng] 「wdm」: Compiling...
[ng] Date: 2020-03-20T01:31:51.564Z - Hash: f657b133a249e7d983e3
[ng] 93 unchanged chunks
[ng] chunk {main} main.js, main.js.map (main) 39 kB [initial] [rendered]
[ng] chunk {pages-about-about-module} pages-about-about-module.js, pages-about-about-module.js.map (pages-about-about-module) 9.83 kB  [rendered]
[ng] chunk {pages-home-home-module} pages-home-home-module.js, pages-home-home-module.js.map (pages-home-home-module) 7.06 kB  [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 9.71 kB [entry] [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.79 MB [initial] [rendered]
[ng] Time: 1549ms
[ng] 
[ng] ERROR in /Users/lookang/node_modules/@ionic-native/keyboard/ngx/index.js
[ng] Module not found: Error: Can't resolve '@angular/core' in '/Users/lookang/node_modules/@ionic-native/keyboard/ngx'
[ng] ERROR in /Users/lookang/node_modules/@ionic-native/keyboard/ngx/index.js
[ng] Module not found: Error: Can't resolve '@ionic-native/core' in '/Users/lookang/node_modules/@ionic-native/keyboard/ngx'
[ng] ERROR in ./src/app/app.component.ts
[ng] Module not found: Error: Can't resolve '@ionic-native/screen-orientation/ngx' in '/Users/lookang/Public/myappsfolder/MyModelApp/src/app'
[ng] ERROR in /Users/lookang/node_modules/@ionic-native/keyboard/ngx/index.js
[ng] Module not found: Error: Can't resolve 'rxjs' in '/Users/lookang/node_modules/@ionic-native/keyboard/ngx'
[ng] ERROR in /Users/lookang/node_modules/@ionic-native/keyboard/ngx/index.js
[ng] Module not found: Error: Can't resolve 'tslib' in '/Users/lookang/node_modules/@ionic-native/keyboard/ngx'
[ng] 「wdm」: Failed to compile.
[ng]     
[ng]     ERROR in src/app/app.component.ts(6,35): error TS2307: Cannot find module '@ionic-native/screen-orientation/ngx'.
[ng]     ../../../node_modules/@ionic-native/keyboard/ngx/index.d.ts(1,35): error TS2307: Cannot find module '@ionic-native/core'.
[ng]     ../../../node_modules/@ionic-native/keyboard/ngx/index.d.ts(2,28): error TS2307: Cannot find module 'rxjs'.
[ng]     
^COpens-MacBook-Pro:MyModelApp lookang$ npm install --save @ionic-native/keyboard
npm WARN karma-jasmine-html-reporter@1.5.2 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.

+ @ionic-native/keyboard@5.22.0
added 1 package from 1 contributor and audited 19816 packages in 6.931s

29 packages are looking for funding
  run `npm fund` for details

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
Opens-MacBook-Pro:MyModelApp lookang$ npm install --save @ionic-native/screen-orientation
npm WARN karma-jasmine-html-reporter@1.5.2 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.

+ @ionic-native/screen-orientation@5.22.0
added 1 package from 1 contributor and audited 19818 packages in 6.543s

29 packages are looking for funding
  run `npm fund` for details

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
Opens-MacBook-Pro:MyModelApp lookang$ ionic serve
> ng run app:serve --host=0.0.0.0 --port=8100
[ng] WARNING: This is a simple server for use in testing or debugging Angular applications
[ng] locally. It hasn't been reviewed for security issues.
[ng] Binding this server to an open connection can result in compromising your application or
[ng] computer. Using a different host than the one passed to the "--host" flag might result in
[ng] websocket connection issues. You might need to use "--disableHostCheck" if that's the
[ng] case.
[ng] 「wds」: Project is running at http://0.0.0.0:8100/webpack-dev-server/
[ng] 「wds」: webpack output is served from /
[ng] 「wds」: 404s will fallback to //index.html
[ng] chunk {common} common.js, common.js.map (common) 22.5 kB  [rendered]
[ng] chunk {core-js-js} core-js-js.js, core-js-js.js.map (core-js-js) 78.7 kB  [rendered]
[ng] chunk {dom-js} dom-js.js, dom-js.js.map (dom-js) 20.2 kB  [rendered]
[ng] chunk {focus-visible-70713a0c-js} focus-visible-70713a0c-js.js, focus-visible-70713a0c-js.js.map (focus-visible-70713a0c-js) 2.15 kB  [rendered]
[ng] chunk {input-shims-a4fc53ac-js} input-shims-a4fc53ac-js.js, input-shims-a4fc53ac-js.js.map (input-shims-a4fc53ac-js) 13.5 kB  [rendered]
[ng] chunk {ios-transition-b4752795-js} ios-transition-b4752795-js.js, ios-transition-b4752795-js.js.map (ios-transition-b4752795-js) 28.4 kB  [rendered]
[ng] chunk {main} main.js, main.js.map (main) 38.8 kB [initial] [rendered]
[ng] chunk {md-transition-5ee3c425-js} md-transition-5ee3c425-js.js, md-transition-5ee3c425-js.js.map (md-transition-5ee3c425-js) 3.91 kB  [rendered]
[ng] chunk {pages-about-about-module} pages-about-about-module.js, pages-about-about-module.js.map (pages-about-about-module) 9.83 kB  [rendered]
[ng] chunk {pages-home-home-module} pages-home-home-module.js, pages-home-home-module.js.map (pages-home-home-module) 7.06 kB  [rendered]
[ng] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 297 kB [initial] [rendered]
[ng] chunk {runtime} runtime.js, runtime.js.map (runtime) 9.71 kB [entry] [rendered]
[ng] chunk {shadow-css-d7d058ec-d59cb009-js} shadow-css-d7d058ec-d59cb009-js.js, shadow-css-d7d058ec-d59cb009-js.js.map (shadow-css-d7d058ec-d59cb009-js) 15.9 kB  [rendered]
[ng] chunk {status-tap-2ec46489-js} status-tap-2ec46489-js.js, status-tap-2ec46489-js.js.map (status-tap-2ec46489-js) 1.79 kB  [rendered]
[ng] chunk {stencil-polyfills-css-shim} stencil-polyfills-css-shim.js, stencil-polyfills-css-shim.js.map (stencil-polyfills-css-shim) 22 kB  [rendered]
[ng] chunk {stencil-polyfills-dom} stencil-polyfills-dom.js, stencil-polyfills-dom.js.map (stencil-polyfills-dom) 19.8 kB  [rendered]
[ng] chunk {styles} styles.js, styles.js.map (styles) 115 kB [initial] [rendered]
[ng] chunk {swipe-back-d2cdbf9a-js} swipe-back-d2cdbf9a-js.js, swipe-back-d2cdbf9a-js.js.map (swipe-back-d2cdbf9a-js) 2.88 kB  [rendered]
[ng] chunk {swiper-bundle-ccdaac54-js} swiper-bundle-ccdaac54-js.js, swiper-bundle-ccdaac54-js.js.map (swiper-bundle-ccdaac54-js) 176 kB  [rendered]
[ng] chunk {tap-click-606f325e-js} tap-click-606f325e-js.js, tap-click-606f325e-js.js.map (tap-click-606f325e-js) 6.38 kB  [rendered]
[ng] chunk {vendor} vendor.js, vendor.js.map (vendor) 4.79 MB [initial] [rendered]
[ng] Date: 2020-03-20T01:33:07.039Z - Hash: b945c5c5db452435cdfa - Time: 8890ms
[INFO] ... and 77 additional chunks
[ng] 「wdm」: Compiled successfully.

[INFO] Development server running!
       
       Local: http://localhost:8100
       External: http://172.16.66.0:8100
       
       Use Ctrl+C to quit this process

[INFO] Browser window opened to http://localhost:8100!

^COpens-MacBook-Pro:MyModelApp lookang$ 

No comments:

Post a Comment