-
Notifications
You must be signed in to change notification settings - Fork 2
using npm link with webpack causes issues as soon as require
is used to load a symlinked module
#12
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
Comments
I think it's best not to use |
You may want to check this out: |
Thanks I'll check it out. |
I've looked into using I have to pick something and move on right now, and I'll go with the alternate approach (removing |
when packing a question we use
npm link
to link local dependencies. This is to allow us to support hot module loading for these local pies. However when node requires a module that is at a symlinked location, it's path is resolved to it's real path.Eg:
This causes all sorts of issues for webpack if any linking is done in the symlinked module (ie vue-loader).
One alternative I'm investigating relates to using
alias
. Will report back shortly.see:
nodejs/node#3402
webpack/webpack.js.org#145
The text was updated successfully, but these errors were encountered: