-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[0.2.0] Component blueprint imports layout module regardless of pod structure #3472
Comments
A simple fix would be to change line 2 to |
So this is from within an addon then? The non-addon version of the component blueprint should not be attempting to import the layout at all... |
I don't know how I should be linking files, so if I'm doing it wrong please let me know. It's not from within an addon. If you look in https://github.com/ember-cli/ember-cli/blob/master/blueprints/component/files/__root__/__path__/__name__.js it should add the layout key, but judging from https://github.com/ember-cli/ember-cli/blob/master/blueprints/component/index.js it should correctly identify whether the project uses pod structure. I feel like I'm missing something. |
'locals' (https://github.com/ember-cli/ember-cli/blob/master/blueprints/component/index.js#L44) is called with |
@jankrueger Let me look into this, I'll see if I can get you some info to guide how to fix. |
@mihai-scurtu thanks for reporting this, you found a bug with The layout import will be removed for in-project blueprints in a future release. |
This reverts commit b11f7e0.
BUGFIX Fixes #3472 Check for 'usePods' instead of 'pod'.
Firstly, I have set
"usePods": "true"
in my.ember-cli
file.If I use
ember generate component x-foo
, it correctly generates the files in/app/pods/components/x-foo/
, but the component class tries to import the layout from the "pod-less" structure.This, in turn, throws the error
The text was updated successfully, but these errors were encountered: