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

Module not found: Error: Can't resolve 'docx-preview' in #122

Open
bbhxwl opened this issue Jun 27, 2024 · 6 comments
Open

Module not found: Error: Can't resolve 'docx-preview' in #122

bbhxwl opened this issue Jun 27, 2024 · 6 comments

Comments

@bbhxwl
Copy link

bbhxwl commented Jun 27, 2024

Module not found: Error: Can't resolve 'docx-preview' in

image

@bbhxwl
Copy link
Author

bbhxwl commented Jun 27, 2024

This dependency was not found: friendly-errors 11:24:05
friendly-errors 11:24:05
[friendly-errors 11:24:05] * docx-preview in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/@open-wc/webpack-i
mport-meta-loader/webpack-import-meta-loader.js!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/unplugi
n/dist/webpack/loaders/transform.js?unpluginName=unocss%3Awebpack!./components/pages/m/admin/ExportWordCommonTemplateLibraryDialog.vue?vue&type=script&lang=js

@zlianyong
Copy link

This dependency was not found:

  • docx-preview in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/plugin/workCore/modules/work/metadataWord.vue?vue&type=script&lang=js

@chushiy
Copy link

chushiy commented Jul 20, 2024

This dependency was not found:

  • docx-preview in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/web/user/user/index.vue?vue&type=script&lang=js

To install it, you can run: npm install --save docx-preview

@tzzhmm
Copy link

tzzhmm commented Aug 20, 2024

Me too

This dependency was not found:

  • docx-preview in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DocxPreview/DocViewer.vue?vue&type=script&lang=js

To install it, you can run: npm install --save docx-preview

@zwdgit
Copy link

zwdgit commented Oct 14, 2024

+1

@Over-reaction
Copy link

这种可能是因为es6语法需要babel进行处理

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

6 participants