question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot re-export name that is not defined in the module

See original GitHub issue

I’m getting the following error when I run ionic serve. I am using the latest as of today

ionic-conference-app-error-05

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:closed
  • Created 8 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pgorbascommented, Mar 29, 2016

Thanks for keeping this open - I had to apply Brandy’s fix as well.

1reaction
brandyscarneycommented, Mar 23, 2016

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:

declare var Promise: PromiseConstructor;

that should fix it.

Also, unrelated, but it seems you have some modules installed that don’t exist in package.json. You can remove node_modules and do a fresh npm install to get rid of those (but then add this fix after you install).

Let me know if that works for you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found