agentcooper / react-pdf-highlighter

Set of React components for PDF annotation
https://agentcooper.github.io/react-pdf-highlighter/
MIT License
1.08k stars 426 forks source link

Nextjs canvas.node problems #266

Open itaybroder opened 8 months ago

itaybroder commented 8 months ago

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 commented 8 months ago

@itaybroder Thank you, you are my hero