Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
🔧 Set esmExternals to false to fix build
Browse files Browse the repository at this point in the history
next >12.0.1 vil ikke builde ordentlig uten esmExternals satt til false i next.config.js. Vet ikke når dette blir fikset, se vercel/next.js#30750 (Måtte også legge til next.config.js i tsconfig.json siden eslint klikka når den prøvde å linte en fil som ikke var inkludert).
  • Loading branch information
bakseter committed Nov 10, 2021
1 parent b432c35 commit 23378d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {
images: {
domains: ['cdn.sanity.io'],
},
experimental: {
esmExternals: false,
},

reactStrictMode: true,
};
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"alwaysStrict": true,
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/components/__tests__/testing-utils.js", "jest.setup.js"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"src/components/__tests__/testing-utils.js",
"jest.setup.js",
"next.config.js"
],
"exclude": ["node_modules"]
}

1 comment on commit 23378d9

@vercel
Copy link

@vercel vercel bot commented on 23378d9 Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.