Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandledRejection: EvalError: Cannot set properties of null #72

Open
paulm17 opened this issue May 11, 2024 · 1 comment
Open

unhandledRejection: EvalError: Cannot set properties of null #72

paulm17 opened this issue May 11, 2024 · 1 comment
Assignees
Labels
bug 🐛 Something doesn't work

Comments

@paulm17
Copy link

paulm17 commented May 11, 2024

Steps to reproduce

Clone repo: https://github.com/paulm17/raikou_pigmentcss
pnpm i
pnpm run dev

The app will crash with a stack trace:

⨯ unhandledRejection: EvalError: Cannot set properties of null (setting 'displayName')

This only happens when the page is a client component.

Remove: https://github.com/paulm17/raikou_pigmentcss/blob/main/apps/web/app/page.tsx#L1

and re-run and the issue goes away.

Current behavior

When a page is marked as "use client". The result of the transform process on code is missing variables? I'm guessing at this point. Therefore it leads to a crash due to an undefined variable.

Expected behavior

Whether a page has "use client" or not. A component with compound properties should work fine.

Context

Using pigment-css with a component library.

Your environment

No response

Search keywords: Cannot set properties of null

@paulm17 paulm17 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 11, 2024
@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label May 11, 2024
@paulm17
Copy link
Author

paulm17 commented Oct 15, 2024

This is a nextjs issue. With vite, there are no problems. I've switched from nextjs to vite.

@brijeshb42 brijeshb42 removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests

3 participants