jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Can't resolve process/browser error when creating new jsPDF

Open devluked opened this issue 3 years ago • 13 comments

I have read and understood the contribution guidelines

Hi,

When I try using jsPDF, I get this error. Is there any way to fix this?

Using ReactJS

image

devluked avatar Jan 26 '22 19:01 devluked

Does it occur if you use Canvg directly?

HackbrettXXX avatar Jan 28 '22 11:01 HackbrettXXX

Hi @devluked did you get any solution for this issue?

othman-19 avatar Feb 19 '22 21:02 othman-19

@othman-19 @HackbrettXXX Hey guys sorry for the late response. I think we figured it out, not sure what the solution was, ill try and find it soon and paste it here.

devluked avatar Feb 20 '22 08:02 devluked

@devluked maybe you can try npm install --save-dev process

ldwformat avatar Mar 07 '22 02:03 ldwformat

same issue here,any solutions?

zhanghaoxu avatar Mar 19 '22 01:03 zhanghaoxu

@devluked How did you solve this?

rsilva-hbs avatar Apr 29 '22 20:04 rsilva-hbs

@devluked @rsilva-hbs same issue, trying several things but no luck.

wildfunctions avatar Apr 29 '22 21:04 wildfunctions

same here

raphaelfavier avatar May 31 '22 13:05 raphaelfavier

@devluked could you tell us the solution i'm serching I did add this to webpack but didn't work

import webpack from "webpack";

module.exports = {
  webpack: {
    configure: {
      resolve: {
        fallback: {
          process: require.resolve("process/browser"),
        },
      },
      plugins: [
        new webpack.ProvidePlugin({
          process: "process/browser",
        }),
      ],
    },
  },
  devServer: {
    proxy: {
      "http://localhost:3000": "http://localhost:3001",
      "/api": "http://localhost:3001",
      secure: false,
    },
  },
};

 

amirho1 avatar Jun 09 '22 17:06 amirho1

@devluked @rsilva-hbs same issue, trying several things but no luck.

did you find anything

amirho1 avatar Jun 11 '22 11:06 amirho1

@devluked can you post the solution that worked

prnth22 avatar Jul 28 '22 17:07 prnth22

same issue here

jkav77 avatar Aug 30 '22 00:08 jkav77

same issue here 🥲

juno7803 avatar Sep 19 '22 06:09 juno7803

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

github-actions[bot] avatar Dec 19 '22 01:12 github-actions[bot]