Skip to content

Commit

Permalink
fix: build admin ui around import ESM modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Carvalho committed Jun 12, 2024
1 parent 5c45c3f commit 0873c2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/admin-ui/templates/next-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export const nextConfigTemplate = (basePath?: string) =>
`const nextConfig = {
// Experimental ESM Externals
// https://nextjs.org/docs/messages/import-esm-externals
// required to fix build admin ui issues related to "react-day-picker" and "date-fn"
experimental: { esmExternals: 'loose' },
typescript: {
ignoreBuildErrors: true,
},
Expand Down

0 comments on commit 0873c2c

Please sign in to comment.