react-to-pdf icon indicating copy to clipboard operation
react-to-pdf copied to clipboard

Throwing "Module parse failed: Unexpected token (49:38) You may need an appropriate loader to handle this file type..."

Open Elavarasan-J opened this issue 1 year ago • 1 comments

react-to-pdf not working for me. I'm using react (18.0.0), webpack bundler(4.43.0) and babel transplier(7.9.6).

It throwing

ERROR in ./node_modules/react-to-pdf/dist/module.js 49:38 Module parse failed: Unexpected token (49:38) 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 | format: this.options.page.format, | orientation: this.options.page.orientation, > ...this.options.overrides?.pdf, | unit: "mm" | });

Elavarasan-J avatar Nov 08 '23 11:11 Elavarasan-J