Code Monkey home page Code Monkey logo

Comments (7)

JuanjoSalvador avatar JuanjoSalvador commented on September 21, 2024 1

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.

brandyscarney avatar brandyscarney commented on September 21, 2024

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.

JuanjoSalvador avatar JuanjoSalvador commented on September 21, 2024

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.

brandyscarney avatar brandyscarney commented on September 21, 2024

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.

JuanjoSalvador avatar JuanjoSalvador commented on September 21, 2024

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.

brandyscarney avatar brandyscarney commented on September 21, 2024

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!

ionic-team/ionic-site#612

from ionic2-app-base.

brandyscarney avatar brandyscarney commented on September 21, 2024

Awesome. Thank you! 😄

from ionic2-app-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.