-
Notifications
You must be signed in to change notification settings - Fork 34
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 read property 'options' of undefined #3
Comments
Weird, seems to work in the test. I'll try to dig into this. Thanks for reporting! |
Thanks @fivetabley. I can only find info on the included hook and not config hook so sorry couldn't help. Look forward to the fix! |
@kenips can you try again with 0.3.0, and let me know what version of node and ember-cli you are using? thanks! |
Sorry @fivetanley no luck.
All I did was:
|
For me at
|
Try 0.3.1. I have no idea how I got this working in a different project before. Probably a fluke. if you look at 6353e4b you can see the change required to get this fixed. I ran into the error in a new app, and upgrading it fixed it for me. |
yeah I was just looking at that - you sure that you can get dotEnv from appConfig? I didn't see that myself. whereas anything declared in environment.js would get passed down. So for me moving the whitelisting to environment.js as |
yeah, the tests passed so i figured it was working. so clearly there's some work to do to get this working from the config hook. wish I could get at the app somehow... :\ |
I rolled back the change for now, it seems it works in some people's apps but not others. I'll keep looking into it. :( |
0.3.3 is out and seems to fully work in my sample application. hope this fixes it for you @kenips |
Note that the first time you access |
@fivetanley it's not working for me. I see that you've added included block but that should be the default behavior anyway. I see the exact same error as first reported now. |
Hello! I have the same problem. I create a new dir, initialize ember, install ember-cli-dotenv from git repo and try to start ember server but I get this error:
|
0.3.4 is out and returns early if the addon gets included too early without the |
Looks good to me! Thanks @fivetanley. |
\o/ |
Works perfect! Thanks! |
Not sure if I've missed anything but seems like
this.app
is undefined inside the config hook in my app?The text was updated successfully, but these errors were encountered: