vue-admin icon indicating copy to clipboard operation
vue-admin copied to clipboard

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

Open ncjones opened this issue 7 years ago • 3 comments

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?

ncjones avatar Dec 14 '17 03:12 ncjones

I meet the same problem, have you resolved it?

xkq-nicky avatar Mar 08 '18 01:03 xkq-nicky

@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.

ncjones avatar Mar 23 '18 04:03 ncjones

You could take a look to Buefy. It's another Vue component library build for Bulma.

On Fri, Mar 23, 2018, 01:46 Nathan Jones [email protected] wrote:

Yes I ditched Bulma and moved to Bootstrap.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vue-bulma/vue-admin/issues/243#issuecomment-375543791, or mute the thread https://github.com/notifications/unsubscribe-auth/ANnS2w-9ZAuCK5FXDOhfB4Ofr4BqhZ5yks5thH4WgaJpZM4RBfI2 .

maarteNNNN avatar Mar 23 '18 05:03 maarteNNNN