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

vue-pdf failed to compile #134

Closed
vedrao opened this issue Jan 21, 2019 · 2 comments
Closed

vue-pdf failed to compile #134

vedrao opened this issue Jan 21, 2019 · 2 comments

Comments

@vedrao
Copy link

vedrao commented Jan 21, 2019

INFO Starting development server...
ERROR Failed to compile with 1 errors16:14:34

error in ./node_modules/vue-pdf/src/pdfjsWrapper.js

Module parse failed: Unexpected token (27:11)
You may need an appropriate loader to handle this file type.
| this.fetch = function(query) {
|

  		return import('raw-loader!pdfjs-dist/cmaps/'+query.name+'.bcmap' /* webpackChunkName: "noprefetch-[request]" */)

| .then(function(bcmap) {
|

@FranckFreiburger
Copy link
Owner

need more details (versions)

@FranckFreiburger
Copy link
Owner

If you are using the latest webpack (4.29.0), you encounter the following issue:
webpack/webpack#8656

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants