Skip to content

[examples] Update Next.js example to use ESM #88

@oliviertassinari

Description

@oliviertassinari

Summary

const { withPigment, extendTheme } = require('@pigment-css/nextjs-plugin');

is using CJS. But npx create-next-app@latest gives you a next.config.mjs file. So we need to update this example.

Motivation

Make it easier to copy and paste the example to an existing project.

Activity

added a commit that references this issue on May 30, 2024
Error6d90d26
added 3 commits that reference this issue on Jun 17, 2024
Errore009961
Errore77eff4
Error53605f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

examplesRelating to /examples.status: waiting for maintainerThese issues haven't been looked at yet by a maintainer.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    [examples] Update Next.js example to use ESM · Issue #88 · mui/pigment-css