You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm encountering an error while using @react-pdf/renderer in my Next.js project. The error occurs during the build process and indicates that I should use import() instead of require(). However, I am already importing the module using import, not require().
Instead change the require of react-pdf.js in D:\....\.next\server\app\(routes)\(main)\landing\mvm\register\page.js to a dynamic import() which is available in all CommonJS modules.
at mod.require (D:\...\node_modules\next\dist\server\require-hook.js:65:28)
at 29376 (D:\...\.next\server\app\(routes)\(main)\landing\mvm\register\page.js:1:314595)
at Object.t [as require] (D:\....\.next\server\webpack-runtime.js:1:143)
at require (D:\....\next\dist\compiled\next-server\app-page.runtime.prod.js:16:18365)
at I (D:\.....\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:94362)
OS: [e.g. MacOS, Windows]
Browser [chrome]
React-pdf version [^4.1.5]
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm encountering an error while using @react-pdf/renderer in my Next.js project. The error occurs during the build process and indicates that I should use import() instead of require(). However, I am already importing the module using import, not require().
The text was updated successfully, but these errors were encountered: