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

在vue2 组件里,导入时,找不到模块。

Open codejc opened this issue 7 years ago • 4 comments

package.json 里已经有该模块的依赖了。

codejc avatar Jul 17 '17 11:07 codejc

在nuxt中遇到同样问题,第一次能正常运行,瀑布流也能出来,但是重新npm run dev后会报错误 [vue-router] Failed to resolve async component default: Error: Cannot find module 'vue-waterfall/lib/waterfall' from '/Users/bqmm-yjm/Desktop/file/node/dong2' [vue-router] uncaught error during route navigation: { Error: Cannot find module 'vue-waterfall/lib/waterfall' from '/Users/bqmm-yjm/Desktop/file/node/dong2' at Function.module.exports [as sync] (/Users/bqmm-yjm/Desktop/file/node/dong2/node_modules/resolve/lib/sync.js:40:15) at r (/Users/bqmm-yjm/Desktop/file/node/dong2/node_modules/vue-server-renderer/build.js:5814:44) at Object. (server-bundle.js:2533:18) at webpack_require (server-bundle.js:27:30) at Object.80 (0.server-bundle.js:406:86) at webpack_require (server-bundle.js:27:30) at Object.69 (0.server-bundle.js:64:3) at webpack_require (server-bundle.js:27:30) at code: 'MODULE_NOT_FOUND' }

ontheway1215 avatar Jul 28 '17 03:07 ontheway1215

有解决方案吗?

PatrickSR avatar Jul 28 '17 08:07 PatrickSR

@ontheway1215 @PatrickSR were you able to get this working with nuxt? if so could you please share the codebase? Thanks!

rlam3 avatar Oct 01 '17 12:10 rlam3

@rlam3 #33

xmqywx avatar Jun 04 '18 03:06 xmqywx