Open oliviertassinari opened 1 month ago
https://github.com/mui/pigment-css/blob/b4e2d779d6bcccab2e8df917e2df20c15ff40fc2/examples/pigment-css-nextjs-ts/next.config.js#L1
is using CJS. But npx create-next-app@latest gives you a next.config.mjs file. So we need to update this example.
npx create-next-app@latest
next.config.mjs
Make it easier to copy and paste the example to an existing project.
Summary
https://github.com/mui/pigment-css/blob/b4e2d779d6bcccab2e8df917e2df20c15ff40fc2/examples/pigment-css-nextjs-ts/next.config.js#L1
is using CJS. But
npx create-next-app@latest
gives you anext.config.mjs
file. So we need to update this example.Motivation
Make it easier to copy and paste the example to an existing project.