jsPDF
jsPDF copied to clipboard
Can't resolve process/browser error when creating new jsPDF
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

Does it occur if you use Canvg directly?
Hi @devluked did you get any solution for this issue?
@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 maybe you can try npm install --save-dev process
same issue here,any solutions?
@devluked How did you solve this?
@devluked @rsilva-hbs same issue, trying several things but no luck.
same here
@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,
},
},
};
@devluked @rsilva-hbs same issue, trying several things but no luck.
did you find anything
@devluked can you post the solution that worked
same issue here
same issue here 🥲
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.