Skip to content

Nextjs canvas.node problems #266

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

Open
itaybroder opened this issue Mar 6, 2024 · 1 comment
Open

Nextjs canvas.node problems #266

itaybroder opened this issue Mar 6, 2024 · 1 comment

Comments

@itaybroder
Copy link

I had an issue in nextjs, with the node canvas, to save you time i found this workaround:
add this to your next config
webpack: ( config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } ) => { config.externals.push({ canvas: 'commonjs canvas' }) return config },

@roxi3906
Copy link

@itaybroder Thank you, you are my hero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants