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 am using Next v15.2.2 and I am unable to build my project while I have @primer/react components in my project.
./node_modules/@primer/react/lib-esm/ActionList/Group-436842dc.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@primer/react/lib-esm/ActionList/Group.module.css.js
Import trace for requested module:
./node_modules/@primer/react/lib-esm/ActionList/Group-436842dc.css
./node_modules/@primer/react/lib-esm/ActionList/Group.module.css.js
./node_modules/@primer/react/lib-esm/ActionList/Group.js
./node_modules/@primer/react/lib-esm/ActionList/index.js
./node_modules/@primer/react/lib-esm/index.js
Hi there @owen-sellner! 👋 Thanks for taking the time to make this issue 🙏
When looking at the snippets you were sharing, I wanted to ask if you were using Pages Router in Next.js? 👀
If so, unfortunately this is unsupported and would require App Router in order to work 😞 My understanding of this is from this RFC: vercel/next.js#27953 where the solution at to use the app directory.
Hope this helps to answer your question, let me know if not and I can help to figure out what might be going on.
Description
I am using Next v15.2.2 and I am unable to build my project while I have @primer/react components in my project.
Steps to reproduce
npx create-next-app@latest
npm run build
Version
v37.14.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: