ionic-team / ionic-v3

The repo for Ionic 3.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
128 stars 85 forks source link

ootb super template broken for --type=ionic-angular #1100

Closed glowinthedark closed 4 years ago

glowinthedark commented 4 years ago

I'm submitting a ... (check one with "x")

Current behavior: Build fails with the ootb super template project with --type=ionic-angular

Expected behavior: Ootb super template builds and runs with ionic serve

Steps to reproduce:

  1. Create a new project with
ionic start myapp super --type=ionic-angular

## OR

ionic start myapp tabs --type=ionic-angular

##  OR

ionic start myapp blank --type=ionic-angular
  1. cd myapp and run the server with:
ionic serve

Other information:

Ionic info::

Ionic:
   Ionic CLI          : 5.4.16 (~/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.9
   @ionic/app-scripts : 3.2.4

Utility:
   cordova-res : not installed
   native-run  : not installed

System:
   NodeJS : v13.8.0 (/usr/local/Cellar/node/13.8.0/bin/node)
   npm    : 6.14.2
   OS     : macOS High Sierra

Stacktrace

08:13 ❯ ionic serve
> ionic-app-scripts serve --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] [08:13:44]  ionic-app-scripts 3.2.4
[app-scripts] [08:13:44]  watch started ...
[app-scripts] [08:13:44]  build dev started ...
[app-scripts] [08:13:44]  clean started ...
[app-scripts] [08:13:44]  clean finished in 2 ms
[app-scripts] [08:13:44]  copy started ...
[app-scripts] [08:13:44]  deeplinks started ...
[app-scripts] [08:13:44]  deeplinks finished in 60 ms
[app-scripts] [08:13:44]  transpile started ...
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 21
[app-scripts]             '=' expected.
[app-scripts]       L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
[app-scripts]       L21:          const captureRejectionSymbol: unique symbol;
[app-scripts]             '=' expected.
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 32
[app-scripts]       L32:  const errorMonitor: unique symbol;
[app-scripts]             '=' expected.
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 361
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 367
[app-scripts]      L361:      const REPL_MODE_SLOPPY: unique symbol;
[app-scripts]             '=' expected.
[app-scripts]      L367:      const REPL_MODE_STRICT: unique symbol;
[app-scripts]             '=' expected.
[app-scripts]       L23:      let replDefaults: InspectOptions;
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 24
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 119
[app-scripts]       L24:      const custom: unique symbol;
[app-scripts]             '=' expected.
[app-scripts]      L118:  namespace promisify {
[app-scripts]      L119:      const custom: unique symbol;
[app-scripts]             '=' expected.
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/worker_threads.d.ts, line: 9
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 21
[app-scripts]        L8:  const parentPort: null | MessagePort;
[app-scripts]        L9:  const SHARE_ENV: unique symbol;
[app-scripts]       L10:  const threadId: number;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]       L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
[app-scripts]       L21:          const captureRejectionSymbol: unique symbol;
[app-scripts]             Cannot find name 'symbol'. Did you mean 'Symbol'?
[app-scripts]       L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 21
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 32
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/events.d.ts, line: 32
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 361
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 361
[app-scripts]       L21:          const captureRejectionSymbol: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]       L32:  const errorMonitor: unique symbol;
[app-scripts]             Cannot find name 'symbol'. Did you mean 'Symbol'?
[app-scripts]       L32:  const errorMonitor: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]      L361:      const REPL_MODE_SLOPPY: unique symbol;
[app-scripts]             Cannot find name 'symbol'. Did you mean 'Symbol'?
[app-scripts]      L361:      const REPL_MODE_SLOPPY: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 367
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/repl.d.ts, line: 367
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 24
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 24
[app-scripts]      L367:      const REPL_MODE_STRICT: unique symbol;
[app-scripts]             Cannot find name 'symbol'. Did you mean 'Symbol'?
[app-scripts]      L367:      const REPL_MODE_STRICT: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]       L23:      let replDefaults: InspectOptions;
[app-scripts]       L24:      const custom: unique symbol;
[app-scripts]             Cannot find name 'symbol'. Did you mean 'isSymbol'?
[app-scripts]       L23:      let replDefaults: InspectOptions;
[app-scripts]       L24:      const custom: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]      L118:  namespace promisify {
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 119
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/util.d.ts, line: 119
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/worker_threads.d.ts, line: 9
[app-scripts]      L119:      const custom: unique symbol;
[app-scripts]             Cannot find name 'symbol'.
[app-scripts]      L118:  namespace promisify {
[app-scripts]      L119:      const custom: unique symbol;
[app-scripts]             Cannot find name 'unique'.
[app-scripts]        L8:  const parentPort: null | MessagePort;
[app-scripts]        L9:  const SHARE_ENV: unique symbol;
[app-scripts]       L10:  const threadId: number;
[app-scripts]             Cannot find name 'symbol'.
[app-scripts]        L8:  const parentPort: null | MessagePort;
[app-scripts]        L9:  const SHARE_ENV: unique symbol;
[app-scripts]       L10:  const threadId: number;
[app-scripts] [08:13:47]  typescript: ~/node_modules/@types/node/worker_threads.d.ts, line: 9

[INFO] Development server running!

       Local: http://localhost:8100

       Use Ctrl+C to quit this process

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

[app-scripts] [08:13:47]  copy finished in 3.37 s
[app-scripts] [08:13:47]  watch ready in 3.43 s
najilouis commented 4 years ago

same problem

glowinthedark commented 4 years ago

I realized the problem was caused by an old ionic cli v5.4.16 which for some reason was located in ~/node_modules.

After running rm -rf ~/node_modules everything works fine and the up-to-date ionic is used:

10:38 ❯ ionic info

Ionic:
   Ionic CLI          : 6.6.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework    : ionic-angular 3.9.9
   @ionic/app-scripts : 3.2.4

Utility:
   cordova-res : not installed
   native-run  : not installed

System:
   NodeJS : v13.8.0 (/usr/local/Cellar/node/13.8.0/bin/node)
   npm    : 6.14.2
   OS     : macOS High Sierra