webpack-simple icon indicating copy to clipboard operation
webpack-simple copied to clipboard

Symlink not supported

Open vbrajon opened this issue 7 years ago • 3 comments
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/ then import MyComponent from './components/MyComponent'

What is working:

  • cp -r ../../my-path-outside-vue-simple/src/components/ src/ then import 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 :)

vbrajon avatar Jan 14 '18 22:01 vbrajon

I have the same exact issue right now.

jdutta avatar Feb 14 '18 19:02 jdutta

Try after adding resolve: { symlinks: false } option in webpack config.

cpxPratik avatar Feb 19 '18 05:02 cpxPratik

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

bastiW avatar Mar 14 '19 10:03 bastiW