Error: Cannot re-export name that is not defined in the module
See original GitHub issueI’m getting the following error when I run ionic serve
. I am using the latest as of today
C:\ionic\ionic-conference-app>ionic info
Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
OS:
Node Version: v5.1.1
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Error: ionic starter using --ts | facade/promise.d.ts : Cannot re ...
Cannot re-export name that is not defined in the module. √ Webpack complete. It happens also when starting a project without the tutorial ......
Read more >How to reexport `*` from a module that uses `export =`
ts I want to re-export everything that m is exporting, so I use: export * from './m'; But it gives me an error:...
Read more >16. Modules - Exploring JS
js ------ import MyClass from 'MyClass' ; const inst = new MyClass ();. Note that there is no semicolon at the end if...
Read more >export 'import_react3' is not defined in module - You.com
To Solve Uncaught SyntaxError: Cannot use import statement outside a module Error Just add type=”module” inside the script tag as given below. if...
Read more >isolatedModules - TSConfig Option - TypeScript
Non -Module Files. If isolatedModules is set, all implementation files must be modules (which means it has some form of import / export...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for keeping this open - I had to apply Brandy’s fix as well.
Ok so I was able to reproduce it on the typescript branch. Sorry, I was testing on the master branch of the conference app. 😞 I found an open issue for it on the CLI repo: https://github.com/driftyco/ionic-cli/issues/848
It looks like it will be fixed when we update the framework to use the latest angular version, but this comment has a workaround for now: https://github.com/angular/angular/issues/6468#issuecomment-176590156
So you go into
node_modules/angular2/src/facade/promise.d.ts
and add this as the first line:that should fix it.
Also, unrelated, but it seems you have some modules installed that don’t exist in
package.json
. You can removenode_modules
and do a freshnpm install
to get rid of those (but then add this fix after you install).Let me know if that works for you!