Use pdfjs-dist Error:
Module parse failed: Unexpected token (2267:39) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | async getXfa() { > return this._transport._htmlForXfa?.children[this._pageIndex] || null; | }
Solution:
Change the version to 2.0.943
Run npm i [email protected]
package.json”dependencies”: {
…
“pdfjs-dist”: “^2.0.943”,
…
},
Similar Posts:
- [Solved] vue-pdf Cannot read properties of undefined (reading ‘catch’)
- [Solved] Error: No module factory available for dependency type: ContextElementDependency
- Causes and solutions of error reporting in require setting dynamic path
- Vue production webpack package PathError [Solved]
- Module not found: Error: Can’t resolve ‘bundle.js’ in…
- Building for production… ERROR TypeError: Cannot read property ‘createHash‘ of undefined
- Webpack learning 1: webpack package error reporting
- [Solved] configuration.module has an unknown property ‘loader’
- [Solved] NPM run dev error [npm ERR! code ELIFECYCLE]
- [Solved] docker-compose:No module named ssl_match_hostname; ImportError: No module named shutil_get_te…