-
-
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
NODE_PATH does not work with isBabelLoader8 #6407
Comments
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I wouldn't mind trying to send a PR out that addresses this but I wouldn't be able to confirm that a fix works with excepted workflows. Are there suitable configuration / integration tests? |
cc @ndelangen |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I'm definitely still interested in getting this fixed. I'll start working on something and submit a PR but it will probably be a few weeks before I'll have dedicated time for it. |
@MrHen let me know if you have time to pair on this at some point? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I longer use this pattern and don't need to fix the issue. I never got the time to look into fixing it. 😢 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Describe the bug
I have a docker set up to install
node_modules
somewhere completely unrelated to my source folder. If I setNODE_PATH='../../../modules/node_modules'
before starting storybook I get an error similar to the following:I think I've tracked down the problem to here: https://github.com/storybooks/storybook/blob/master/lib/core/src/server/utils/load-custom-babel-config.js#L52
There is a
cwd
call that assumesbabel-loader
will be installed somewhere near the current directory. This appears to ignoreNODE_PATH
completely and, therefore, it cannot findbabel-loader
.If I use
npm link
to create a symlink to the actual location ofbabel-loader
then storybook loads up fine. This isn't tenable in my environment but it does seem to confirm the issue.I have to use such a strange
NODE_PATH
because of quirks involving Docker volumes and facebook/create-react-app#6021.To Reproduce
Set
NODE_PATH
to a location not near the current working directory (e.g., three directories abovepackage.json
and attempt to start storybook usingnpm run storybook
.Expected behavior
storybook should respect
NODE_PATH
when checking forbabel-loader
.Code snippets
package.json
:Dockerfile
:docker-start.sh
uses supervisord to run/usr/local/bin/npm run storybook
.The text was updated successfully, but these errors were encountered: