-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Custom directory for package.json/node_modules produces error #296
Comments
This is an unusual structure for a project. Would symlinks help? |
@n1313 This appears to be the decided directory structure that is going to be used within Rails in the 5.1 release unless something major changes(rails/webpacker#72). I've tried using symlinks with some success, but then I realized that I was ultimately just symlinking my entire vendor folder to the root directory to get things working. I'm sure this is just an edge case as most apps will have package.json/node_modules in the root directory, but if support for custom node_module directories is on the radar(if that's actually what the problem is), it'd help us people locked into Rails! |
If that‘s a common file structure for Rails projects it worth trying to fix ;-) Although it‘ll require some investigation ;-)
|
I was able to resolve this issue by moving my config to |
I can’t reproduce this in 5.x beta. So it’s either already fixed there or I’m doing something wrong. So closing this for now. |
I'm currently working on a Rails project where it's necessary that
package.json
and ournode_modules
folder is in/vendor
. I believe this requirement is breaking the styleguidist scripts and can't seem to find a way to work around it. Is there anyway to set a custom node directory outside of the root folder?The error I receive from running
npm run styleguide-server
ornpm run styleguide-build
from within my/vendor
folder looks like:My
npm-debug.log
contains:Currently my folder structure looks like this:
My package.json file looks like this:
My styleguide config looks like this:
config/webpack/styleguide.js
.Issue can be reproduced by this commit: joerodrig/demo-webpacker-react@6e6e012
The text was updated successfully, but these errors were encountered: