Comments (13)
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.
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.
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.
ah yes, I get the same error :( Will drop let
for now then...
Give me one hour ;)
from generator-aurelia-ts.
Now tested all generators with node 0.12.x :)
from generator-aurelia-ts.
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.
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.
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.
Trying npm global install now. Thanks :)
from generator-aurelia-ts.
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.
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.
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.
Awesome - works now, thanks :-)
from generator-aurelia-ts.
Related Issues (11)
- PR for this HOT 12
- It keeps asking to install at the parent folder HOT 3
- Aurelia now includes generated d.ts files HOT 4
- Error> events.js:141throw er; // Unhandled 'error' event on "yo aurelia-ts" HOT 7
- Omitting or choosing SASS CSS Preprocessor causes "TypeError: Cannot read property 'plugins' of undefined" error HOT 6
- getting unhandled error in events.js HOT 2
- SASS (indented syntax) HOT 2
- port to aurelia beta1? HOT 3
- SyntaxError: Use of const in strict mode / Unexpected token ILLEGAL (ES6 javascript not executing on node 12.2)
- When i tried to create entity in project folder , getting the following error) HOT 3
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 generator-aurelia-ts.