-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save error: writeFileSync is not a function #2879
Comments
In which context do you run the app? Especially which build tools do you use? Seems like the build tool uses the node variant instead of the es modules variant. |
We're using parcel v2 for bundling. What other context information would you need? |
Could reproduce it. Seems like parcel 2 behaves differently than parcel 1, rollup and webpack: if the I'll quickly prepare a pull request. |
Could you test if your app works with the files from the pull request (you need to run |
When installing |
Great! I'll merge it and I will probably prepare a bugfix release next week. |
Awesome, thanks a lot! |
In the latest version of jsPDF (2.1.0), when trying to save a document, I'm getting the following error:
I'm importing jsPDF as
import { jsPDF } from 'jspdf';
, and am usingjspdf
client-side. Any idea on how to solve this?The text was updated successfully, but these errors were encountered: