-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Helvetica.afm file missing in Next.js #1549
Comments
did you find a solution? I also have the same error |
same here |
The correct solution for the current version of next is declaring pdfkit as a const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["pdfkit"],
},
}; |
This "fix" worked for me on Next.js 14.2.16. Thank you! |
Note that in Next.js 15 So you use: const nextConfig = {
serverExternalPackages: ["pdfkit"],
} |
Bug Report
No Helvetica.afm file is being created when I use Next.js locally.
Description of the problem
I have to manually create a) the
data
folder and b) theHelvetica.afm
file in.next/server/vendor-chunks
every time I start the project.Code sample
Your environment
The text was updated successfully, but these errors were encountered: