-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error on Webpack 2 #34
Comments
Yep, same problem here |
Thanks for brining this to my attention @lucasbento and @piersroberts and the likers. I might need some more information because I can get this to work just fine in my simplified example app (just pushed that to https://github.com/mrsteele/dotenv-webpack-example so please check it out to compare with what you are doing). I can get all my console logs to show just fine, so maybe its a conflict with another package? |
I've raised a PR which fixes it for me |
Hmmm, yeah it doesn't mess up any of my local tests, can anyone else confirm @piersroberts's approach fixes the problem? |
I have accepted @piersroberts pull request and semantic release is pushing Thank you @piersroberts for the PR and thank you @lucasbento for reporting! |
I'm getting this useless error message:
Uncaught SyntaxError: Unexpected token :
which comes frombundle.js:6470
, the exact line where the environment is defined:This is my webpack config:
And this is my
.env
:Can you point me the way to fix it? I can also send a PR if it's a problem on the package itself.
Versions
dotenv-webpack:
1.4.0
webpack:
2.2.1
webpack-dev-server:
2.3.0
The text was updated successfully, but these errors were encountered: