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

Simple Styled Component giving error about extending not existing component in Next 14 #4272

Open
rnnyrk opened this issue Mar 1, 2024 · 0 comments

Comments

@rnnyrk
Copy link

rnnyrk commented Mar 1, 2024

Environment

## System:
 - OS: macOS 14.3.1
 - CPU: (11) arm64 Apple M3 Pro
 - Memory: 73.89 MB / 18.00 GB
 - Shell: 5.9 - /bin/zsh
## Binaries:
 - Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
 - npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
 - pnpm: 8.15.4 - /opt/homebrew/bin/pnpm
 - bun: 1.0.29 - /opt/homebrew/bin/bun
 - Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
## npmPackages:
 - styled-components: 6.1.8 => 6.1.8

Reproduction

https://github.com/rnnyrk/tasks-sc

https://github.com/rnnyrk/tasks-sc/blob/main/src/components/modules/tasks/TasksOverview.tsx

Issue also happens with every component commented out and the only styled component being in the styled.div in the last file (TasksOverview)

Steps to reproduce

git clone [email protected]:rnnyrk/tasks-sc.git
cd tasks-sc && pnpm i
pnpm dev

Expected Behavior

I'm trying to get Styled Components working with React Aria + NextJS 14. Rendering the Styled Components as use client, so that shouldn't cause trouble. I expect the components to render without an error, since I'm not extending any component as the error suggests..

Actual Behavior

Component is not a styled component and cannot be referred to via component selector.

But I'm not extending any component. Codebase is rather simple, just a few styled components. Also downscaled to one rendering 1 component which is just a styled.div I get this error..

Screenshot 2024-03-01 at 11 55 16
@rnnyrk rnnyrk changed the title Simple Styled Component giving error about extending not existing component Simple Styled Component giving error about extending not existing component in Next 14 Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant