Vue JS with story hot config for storybook and jest error in Cannot find module '@storybook/vue/dist
Posted
技术标签:
【中文标题】Vue JS with story hot config for storybook and jest error in Cannot find module \'@storybook/vue/dist/server/babel_config\' from \'config-loader.js\'【英文标题】:VueJS wtith storyhot config for storybook and jest error of Cannot find module '@storybook/vue/dist/server/babel_config' from 'config-loader.js'Vue JS with story hot config for storybook and jest error in Cannot find module '@storybook/vue/dist/server/babel_config' from 'config-loader.js' 【发布时间】:2019-03-31 08:29:27 【问题描述】:复制
克隆https://github.com/adamchenwei/vuejs-playground/tree/step/3-3-2-B-storybook-storyshot-broken
结帐步骤/3-3-2-B-storybook-storyshot-broken
npm run test
查看错误Cannot find module '@storybook/vue/dist/server/babel_config' from 'config-loader.js'
我哪里做错了?我怀疑 babel 中的某些东西,但我不确定是什么。
【问题讨论】:
【参考方案1】:通过在 github 上打开问题来解决它!这是故事书插件版本与故事书版本不一致的结果!
请在此处查看我的提交以获取关键配置 https://github.com/adamchenwei/vuejs-storybook-storyshot-jest-webpack-boilerplate/commit/df9cc7cacb045633b20bb0ffad71abed31a81b73
忽略里面所有的毛茸茸的东西,这块是关键修复:通过升级到相同的4.0.0-rc.6
玩得开心编码!
【讨论】:
以上是关于Vue JS with story hot config for storybook and jest error in Cannot find module '@storybook/vue/dist的主要内容,如果未能解决你的问题,请参考以下文章
webpack打包遇到locals[0] does not appear to be a `module` object with Hot Module replacement API enabled