You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying use PigmentCSS with Nextjs along with my sample Component (that lives in an ESM only module) but I've run into this issue when I try to perform a Nextjs build:
unhandledRejection /Users/.../node_modules/@wyw-in-js/transform/lib/module.js:224
throw new EvalError(`${e.message} in${this.callstack.join('\n| ')}\n`);
^
EvalError: No "exports" main defined in /Users/.../node_modules/@sample/sample-components/package.json in/Users/.../src/services/content/stackClient.ts
Any ideas on how I can get PigmentCSS to work with ESM only modules? I followed the instructions on how to configure Nextjs for PigmentCSS. The instructions were pretty straight forward.
Steps to reproduce
I'm trying use PigmentCSS with Nextjs along with my sample Component (that lives in an ESM only module) but I've run into this issue when I try to perform a Nextjs build:
Any ideas on how I can get PigmentCSS to work with ESM only modules? I followed the instructions on how to configure Nextjs for PigmentCSS. The instructions were pretty straight forward.
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
Here is my environment info:
Thank you!!!
Search keywords: ESM EvalError
The text was updated successfully, but these errors were encountered: