-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
DefinePlugin: "Conflicting values for 'process.env'" if you have a .env file #15927
Comments
Hey jdelStrother, thanks for filing this issue! I think adding the I've been experiencing the same issue while using [email protected] with
I did also notice that a local dev with |
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.0-alpha.34 containing PR #15925 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
If you have a .env file present in the cwd, it causes a warning to be emitted:
To Reproduce
Checkout https://github.com/jdelStrother/conflicting-process-env
Run
yarn
Run
yarn start-storybook --smoke-test
System
Additional context
When running storybook interactively, one can just ignore this warning. However, it does cause
start-storybook --smoke-test
to fail, which is annoying for CI purposes. I don't actually want my .env file loaded in storybook, but can't see a good way of preventing the automatic detection.The text was updated successfully, but these errors were encountered: