Skip to content
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

v7 doesn't work with webpack 4 #369

Closed
valyagolev opened this issue Mar 9, 2021 · 4 comments
Closed

v7 doesn't work with webpack 4 #369

valyagolev opened this issue Mar 9, 2021 · 4 comments

Comments

@valyagolev
Copy link

v7 (both 7.0.0 and 7.0.1) fails with webpack 4 (after #360 I think), but the package.json claims to support that as a peer.

✖ ERROR TypeError: Cannot read property 'version' of undefined
    at Dotenv.apply (test-project/node_modules/dotenv-webpack/dist/index.js:65:38)
    at webpack (test-project/node_modules/webpack/lib/webpack.js:51:13)
    at devBuild (test-project/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:23:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

v6.0.4 works well with webpack 4

G-Rath added a commit to ackama/rails-template that referenced this issue Mar 13, 2021
v7 is currently throwing errors on webpack 4: mrsteele/dotenv-webpack#369
G-Rath added a commit to ackama/rails-template that referenced this issue Mar 14, 2021
v7 is currently throwing errors on webpack 4: mrsteele/dotenv-webpack#369
@mrsteele
Copy link
Owner

@valyagolev Can you try with v7.0.2 (just released yesterday). That should fix it but please let me know if it doesnt.

@mrsteele
Copy link
Owner

@valyagolev Did v7.0.2 work for you?

@valyagolev
Copy link
Author

Thank you for the fix and for asking. Unfortunately I can't really check this any time soon. At that moment and for that little project, I got by with 6.0.4, and reported this mostly for your reference. Thank you!

@karlomajer
Copy link

@valyagolev Did v7.0.2 work for you?

I had the same issue. v7.0.2 fixed it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants