使用webpack安装Quill会产生羊皮纸错误

时间:2016-12-23 14:50:15

标签: webpack quill

我正在尝试使用webpack安装Quill并且我按照指南(http://quilljs.com/guides/adding-quill-to-your-build-pipeline/)进行了操作,但是我收到错误,其中Parchment未正确加载:

ERROR in ./~/quill/core.js
Module not found: Error: Can't resolve 'parchment' in '/Users/myuser/Desktop/project/node_modules/quill'
 @ ./~/quill/core.js 1:0-34
 @ ./client/lib/Quill.js
 @ ./~/babel-loader/lib!./client/components/mycomponent.js
 @ ./client/components/mycomponent.vue
 @ ./client/router/router.js
 @ ./client/app.js
 @ ./client/index.js
 @ multi client

我已经仔细检查了parchmentnpm install ed并且我有适当的打字机加载器。还有什么我需要添加来让webpack识别Quill中的羊皮纸吗?我的webpack配置符合推荐的设置:

alias: {
      root: path.join(__dirname, '../client'),
      components: path.join(__dirname, '../client/components'),
      styles: path.resolve(__dirname, '../client/styles'),
      lib: path.resolve(__dirname, '../client/lib'),
      img: path.resolve(__dirname, '../client/img'),
      'parchment': path.resolve(__dirname, 'node_modules/parchment/src/parchment.ts'),
      'quill$': path.resolve(__dirname, 'node_modules/quill/quill.js')
    }

0 个答案:

没有答案
相关问题