Giter Club home page Giter Club logo

Comments (13)

kristianmandrup avatar kristianmandrup commented on June 15, 2024

The generator has been written in strict mode syntax, ie. with some new/modern ES2015 constructs such as let. The error is due to your node version being incompatible (old school).
I should note this in the readme. Try the latest node 0.12.7 (untested) or even better, iojs 3.0 (the one I use), install globally via nvm and try again ;) Cheers!

PS: We are working on tests this week to make sure we have a good test suite...

from generator-aurelia-ts.

delebash avatar delebash commented on June 15, 2024

I am running node version 12.7 on Windows 7 x64 and still get this error. I was trying to test to see about fixing issue #7. But got the above error. I really do not want to switch to iojs, I have had problems in the past with node-gyp on windows, haven't tested lately. Regarding the aurelia ts issue if you run jspm in your generator you automatically get the ts files so you should not have to do anything except reference them in your build task. I can send you my gulp task, not sure about Visual Studio

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

Try the latest version 0.6.3 just published. I will test node 0.12.7 locally now to make sure.

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

ah yes, I get the same error :( Will drop let for now then...
Give me one hour ;)

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

Now tested all generators with node 0.12.x :)

from generator-aurelia-ts.

delebash avatar delebash commented on June 15, 2024

It's always the little things, think something didn't get pushed to npm, just tried 0.7.0 and

module.js:338
throw err;
^
Error: Cannot find module '../../lib'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (F:\Program Files\nodejs\global_npm\npm\node_modules\generator-aurelia-ts\generators\app\index.js:12:11)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

Works fine on my machine using npm link. Just published 0.7.1, maybe it fixes this?
Otherwise would love if you could clone, npm link and run it locally to see what could be the problem.
Thanks :)
So close....

from generator-aurelia-ts.

delebash avatar delebash commented on June 15, 2024

npm link may be causing the problem if you have something linked locally but are not pushing to npm. I will have to read up on npm link, I am not really that familiar but don't have the time right now. As soon as I can I will take a look at it, but I think if you disable npm link you will probably see the issue.

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

Trying npm global install now. Thanks :)

from generator-aurelia-ts.

kristianmandrup avatar kristianmandrup commented on June 15, 2024

It turned out it was due to a package.json setting files: which pointed to generators as the place with all the files. My collaborator Guillermo had added this "optimisation" without my knowledge...
However since /lib is outside the /generators folder so as not to be picked up as a generator, it was inaccessible. Tested and works now, both via npm link and global install. Finally :)

from generator-aurelia-ts.

delebash avatar delebash commented on June 15, 2024

This issue is fixed, thanks!

But now it is not downloading aurelia via jspm, sometimes depending on the options it is not even running jspm. Seems like the question decorate determines if it will run jspm but even choosing yes for decorate then choosing no for all other options it does not run jspm and install aurelia, not sure why, maybe I am not choosing the right options, but if I get the time I will investigate and either log further bugs or do a PR.

from generator-aurelia-ts.

telekosmos avatar telekosmos commented on June 15, 2024

Well, definitely what you are talking about needs more testing. I'm getting back after some rest and will enhance the tests.
Regarding to the package.json issue, it wasn't my intention optimize the generator but I found some issue during testing and had to change couple of very minor things which didn't work ☺️

from generator-aurelia-ts.

leighghunt avatar leighghunt commented on June 15, 2024

Awesome - works now, thanks :-)

from generator-aurelia-ts.

Related Issues (11)

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.