Skip to content
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

Symlink not supported #171

Open
vbrajon opened this issue Jan 14, 2018 · 3 comments
Open

Symlink not supported #171

vbrajon opened this issue Jan 14, 2018 · 3 comments

Comments

@vbrajon
Copy link

vbrajon commented Jan 14, 2018

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 :)

@jdutta
Copy link

jdutta commented Feb 14, 2018

I have the same exact issue right now.

@cpxPratik
Copy link

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

@bastiW
Copy link

bastiW commented Mar 14, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants