Skip to content

Commit

Permalink
Fix Next.js Pages Router build
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 10, 2024
1 parent e1e51c2 commit fb1e5dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample/next-pages/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
/**
* Critical: prevents "ESM packages (pdfjs-dist/build/pdf.worker.min.mjs) need to be imported." error
*/
esmExternals: 'loose',
turbo: {
resolveAlias: {
// Turbopack does not support standard ESM import paths yet
Expand Down

0 comments on commit fb1e5dc

Please sign in to comment.