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

Can't resolve 'vue-style-loader' when using npm link #243

Open
ncjones opened this issue Dec 14, 2017 · 3 comments
Open

Can't resolve 'vue-style-loader' when using npm link #243

ncjones opened this issue Dec 14, 2017 · 3 comments

Comments

@ncjones
Copy link

ncjones commented Dec 14, 2017

I'm building some Vue component libraries using vue-bulma as an example and I'm trying to work out how to test the libraries using npm link. I expected that this would work with the vue-admin app but npm run dev fails after using npm link.

In vue-bulma-notification:

npm link 

In vue-admin:

npm i
npm link vue-bulma-notification
npm run dev
ERROR in ../notification/src/Notification.vue
Module not found: Error: Can't resolve 'vue-style-loader' in '/Users/nathan/Code/vue-bulma/notification/src'
 @ ../notification/src/Notification.vue 3:0-280
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/views/components/Notification.vue
 @ ./client/views/components/Notification.vue
 @ ./client/views lazy ^\.\/.*\.vue$
 @ ./client/store/modules/menu/lazyLoading.js
 @ ./client/store/modules/menu/index.js
 @ ./client/store/index.js
 @ ./client/app.js
 @ ./client/index.js
 @ multi ./build/dev-client ./client/index.js

The npm run dev command works fine for me when there are no linked dependencies. Do you have any hints on how to develop and test Vue modules using npm link?

@xkq-nicky
Copy link

I meet the same problem, have you resolved it?

@ncjones
Copy link
Author

ncjones commented Mar 23, 2018

@649197313 Yes I ditched Bulma and moved to Bootstrap with no regrets. I'm still having occasional issues with npm link when testing changes to frontend libraries. I am planning on looking at Wml to address those issues: https://github.com/wix/wml.

@maarteNNNN
Copy link

maarteNNNN commented Mar 23, 2018 via email

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

3 participants