ivmarcos / react-to-pdf

Generate pdf from react components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error after installing the lib

kksingla opened this issue · comments

./node_modules/react-to-pdf/dist/module.js 43:32
Module parse failed: Unexpected token (43:32)
File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | format: this.options.page.format,
    | orientation: this.options.page.orientation,
  ...this.options.overrides?.pdf,

| unit: "mm"
| });
image

Any update on this issue?

./node_modules/react-to-pdf/dist/module.js 43:32 Module parse failed: Unexpected token (43:32) File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | format: this.options.page.format,
    | orientation: this.options.page.orientation,
  ...this.options.overrides?.pdf,

| unit: "mm" | }); image

Did you solve the problem? thank you

Any update on this issue?