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
See error in console: Uncaught TypeError: Object.defineProperty called on non-object
Current vs. Expected behavior
Current: When using react-pdf (which depends on pdfjs-dist) with Next.js 16 and webpack mode, the app
crashes with TypeError: Object.defineProperty called on non-object.
Which area(s) are affected? (Select all that apply)
Webpack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This issue appears to be the same as webpack/webpack#20095, which was fixed in webpack 5.103.0.
Next.js 16.1.6 lists webpack 5.98.0 in devDependencies, which is likely bundled in dist/compiled/webpack/bundle5.js.