Comments (7)
Always at your service! I'm working now with transition from Angular/Ionic 1.x to Angular/Ionic 2, anything I think should be reported, will be reported.
from ionic2-app-base.
Hey @JuanjoSalvador thanks for the issue! How are you getting this error? I just ran each starter (with a fresh node_modules) on both the master & typescript branches without getting any errors.
from ionic2-app-base.
Well, it seems a common failure. I've created new project with ionic start MyApp blank --v2 --ts
, and installed all dependencies with npm install
.
When my app is ready to test, I just started it with ionic serve
and... Then, I get this error:
Running 'serve:before' gulp task before serve
[18:28:32] Starting 'clean'...
[18:28:32] Finished 'clean' after 17 ms
[18:28:32] Starting 'watch'...
[18:28:32] Starting 'sass'...
[18:28:32] Starting 'html'...
[18:28:32] Starting 'fonts'...
[18:28:32] Starting 'scripts'...
[18:28:32] Finished 'scripts' after 76 ms
[18:28:32] Finished 'html' after 85 ms
[18:28:32] Finished 'fonts' after 93 ms
Caught exception:
ReferenceError: Promise is not defined
at LazyResult.async (/Users/linuxeitor/Documents/Ionic2/Ionic2SecondApp/node_modules/postcss/lib/lazy-result.js:157:31)
[...]
Looking for help, at StackOverflow and Ionic's 2 issues, I've found the same way to repair it, installing this node module and writing that in gulpfile.js
Now it works.
from ionic2-app-base.
Could you run node -v
and npm -v
and paste the output here, please?
$ node -v
v4.4.2
$ npm -v
3.8.5
from ionic2-app-base.
Mmmm. It could be node
version. This is my job's computer and I can't update some things.
$ npm -v
3.8.9
$ node -v
v0.10.33
UPDATE
I've just updated node.js to v4.4.4 (damn homebrew! it says I've got 6.2.0!), created a new application using blank template and runned ionic serve
and it works fine now.
Sorry for the inconveniences!
from ionic2-app-base.
Thanks for getting back to me! I think this is something we need to document better since there are so many issues with older versions of Node and 6.x, and older versions of npm have issues as well. I added an issue to add it to the installation docs but let me know if you have any other ideas!
from ionic2-app-base.
Awesome. Thank you! 😄
from ionic2-app-base.
Related Issues (20)
- question: Order of polyfills.js HOT 6
- ionic-native is not supposed to be updated? HOT 2
- Network native plugin HOT 1
- Use @angular/router: UNMET PEER DEPENDENCY and transpile failed HOT 2
- EPEERINVALID on "ionic start" HOT 1
- Dependency problem HOT 3
- Cannot find module "ionic-native" HOT 4
- ionic 2 page redirection automatically HOT 1
- unmet dependencies upon upgrading to ionic 3 HOT 1
- Things in resources folder are not used HOT 1
- deprecated main.dev.ts
- Native cor dep will cause unmet peers with the versions from ionic native plugins HOT 2
- Ionic icons are not getting cached in PWA HOT 2
- question: why was declarations.d.ts removed? HOT 1
- @ionic/app-scripts 2.0.0 live update not work HOT 1
- Add vendor.js to service-worker? HOT 1
- Outdated native package versions HOT 1
- "Homepage" name may be repeated
- Evaluate this repo for closure HOT 1
- Unexpected token ILLEGAL in main.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic2-app-base.