Open mriska opened 7 years ago
In order to temporarily work around these issues you can make a change in the file:
node_modules/ember-source/blueprints/route/index.js
Change any instance of options.locals.moduleName
to options.dasherizedModuleName
and it should work.
I am seeing the exact same problem. Has anyone had the chance of investigating this further?
Same here
$ ember -v
ember-cli: 2.16.2
node: 7.10.0
os: linux x64
$ ember g route foo/bar
installing route
Cannot read property 'moduleName' of undefined
TypeError: Cannot read property 'moduleName' of undefined
at __name__ (.../node_modules/ember-source/blueprints/route/index.js:35:30)
at fileMapValues.map.token (.../node_modules/ember-cli/lib/models/blueprint.js:633:50)
at Array.map (native)
at Class.generateFileMap (.../node_modules/ember-cli/lib/models/blueprint.js:633:37)
at Promise.then.customLocals (.../node_modules/ember-cli/lib/models/blueprint.js:827:26)
at tryCatch (.../node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (.../node_modules/rsvp/dist/rsvp.js:538:13)
at .../node_modules/rsvp/dist/rsvp.js:606:14
at flush (.../node_modules/rsvp/dist/rsvp.js:2400:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
Same here