-
-
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
storybook does not use NODE_PATH from .env for building code #4496
Comments
@pksunkara , @ndelangen , could it be related to the recent env loading changes ? |
Possibly. But loading from |
@pksunkara It's weird :( |
@pksunkara @igor-dv
|
@vadzim-revolist Have you tried this with anything other then NODE_PATH? |
@ndelangen I've tried just now. |
On rc-3 this error still present |
I see. |
Thank you for testing, I now understand the problem better. |
Related discussion, facebook/create-react-app#2230 |
After upgrading from
4.0.0-alpha.24
to4.0.0-rc.1
storybook stopped loading.env
file.I'm using CRA and there is NODE_PATH variable that is needed to compile source.
I've solved the problem by adding
env $(cat .env)
to the storybook scripts in package.json, but could someone please tell is that a bug or a feature? Will storybook support.env
file in the future?Sorry, I've not found any info in the documentation... (
The text was updated successfully, but these errors were encountered: