-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot generate routes with classic decorator #167
Comments
Ran into the same issue. We are also on 3.12. We thought it might also be because we migrated to using JS native class syntax prematurely. Is there any workaround? |
I have not found a solution. Waiting for next upgrade to see if it goes away |
The issue is in https://github.com/ember-cli/ember-router-generator, it needs to be updated to understand how to parse decorators. |
We are using something like: var recast = require('recast');
var parser = require('recast/parsers/babel');
recast.parse(someFileContents, { parser }); And I think we need to set more options to enable decorator parsing there. |
(transferred the issue to ember-cli/ember-router-generator) |
I am trying to generate a route
ember g route location/account/add
and I am getting errors and only the template and template.js gets generated.Output from
ember version --verbose && npm --version && yarn --version
:Ember version is 3.12 as well
The text was updated successfully, but these errors were encountered: