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

TypeError when using React version < 18 #26

Open
PatrikKozak opened this issue Dec 1, 2022 · 1 comment
Open

TypeError when using React version < 18 #26

PatrikKozak opened this issue Dec 1, 2022 · 1 comment

Comments

@PatrikKozak
Copy link

error - TypeError: (0 , react_1.useId) is not a function at Collapsible (/node_modules/@faceless-ui/collapsibles/dist/Collapsible/Provider/index.js:51:38)

Using React version: 17.0.2

@bmason
Copy link

bmason commented Nov 18, 2023

with React 18.0.2

node_modules@faceless-ui\collapsibles\dist\Collapsible\Provider\context.js (4:52) @ eval
⨯ TypeError: (0 , react_1.createContext) is not a function

There is no context on the server side, so I put "use client" at the top and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants