We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301b633 commit 06a63c6Copy full SHA for 06a63c6
sample/next-pages/next.config.js
@@ -1,6 +1,10 @@
1
/** @type {import('next').NextConfig} */
2
const nextConfig = {
3
experimental: {
4
+ /**
5
+ * Critical: prevents "ESM packages (pdfjs-dist/build/pdf.worker.min.mjs) need to be imported." error
6
+ */
7
+ esmExternals: 'loose',
8
turbo: {
9
resolveAlias: {
10
// Turbopack does not support standard ESM import paths yet
0 commit comments