webpack-simple
webpack-simple copied to clipboard
Symlink not supported
trafficstars
I am prototyping a quick project loading components from another place.
What is not working:
import MyComponent from '../../my-path-outside-vue-simple/src/components/MyComponent'ln -s ../../my-path-outside-vue-simple/src/components/ src/thenimport MyComponent from './components/MyComponent'
What is working:
cp -r ../../my-path-outside-vue-simple/src/components/ src/thenimport MyComponent from './components/MyComponent'
I really think symlink or not, the behavior should be the same.
This is probably webpack related, I quickly search for an option but couldn't find.
Thanks for everything, vue is making my life easier :)
I have the same exact issue right now.
Try after adding resolve: { symlinks: false } option in webpack config.
Yes! That worked.
If you use chain Webpack you can set the setting as described here: https://cli.vuejs.org/guide/troubleshooting.html#symbolic-links-in-node-modules