-
-
Notifications
You must be signed in to change notification settings - Fork 969
Closed
Description
UnoCSS version
66.6.0
Describe the bug
Getting this error in Next.js + PostCSS Uno integration, because index.cjs actually doesn't exists in @unocss/postcss/dist:
⨯ ./src/styles/global.sass.css
Error evaluating Node.js code
Error: Cannot find module '.../node_modules/@unocss/postcss/dist/index.cjs'
[at createEsmNotFoundErr (node:internal/modules/cjs/loader:1441:15)]
[at finalizeEsmResolution (node:internal/modules/cjs/loader:1430:15)]
[at resolveExports (node:internal/modules/cjs/loader:661:14)]
[at Function._findPath (node:internal/modules/cjs/loader:753:31)]
[at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)]
[at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)]
[at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)]
[at Function._load (node:internal/modules/cjs/loader:1215:37)]
[at TracingChannel.traceSync (node:diagnostics_channel:322:14)]
[at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)]
Import trace:
Client Component Browser:
./src/styles/global.sass.css [Client Component Browser]
./src/app/layout.tsx [Server Component]
Reproduction
- Create Next.js project.
- Add postcss.config.mjs
- Add
@unocss allin the global css/sass file
System Info
MacOS, Next.js
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels