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

Version conflict of tailwindcssui with webpack #1570

Closed
snake65719 opened this issue May 5, 2024 · 3 comments
Closed

Version conflict of tailwindcssui with webpack #1570

snake65719 opened this issue May 5, 2024 · 3 comments
Assignees
Labels
needs repro A reproduction of the bug (GitHub repo, CodeSandbox) is needed

Comments

@snake65719
Copy link

What component (if applicable)

Describe the bug
A clear and concise description of what the bug is. TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
at eval (webpack-internal:///(rsc)/./node_modules/@headlessui/react/dist/internal/open-closed.js:9:75)
at (rsc)/./node_modules/@headlessui/react/dist/internal/open-closed.js (D:\learn\testui\my-app.next\server\vendor-chunks@headlessui.js:110:1)
at webpack_require (D:\learn\testui\my-app.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///(rsc)/./node_modules/@headlessui/react/dist/components/disclosure/disclosure.js:10:82)
at (rsc)/./node_modules/@headlessui/react/dist/components/disclosure/disclosure.js (D:\learn\testui\my-app.next\server\vendor-chunks@headlessui.js:20:1)
at webpack_require (D:\learn\testui\my-app.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///(rsc)/./app/page.js:7:108)
at (rsc)/./app/page.js (D:\learn\testui\my-app.next\server\app\page.js:184:1)
at Function.webpack_require (D:\learn\testui\my-app.next\server\webpack-runtime.js:33:42)
at async e9 (D:\learn\testui\my-app\node_modules\next\dist\compiled\next-server\app-page.runtime.dev.js:35:396554)
at async rL (D:\learn\testui\my-app\node_modules\next\dist\compiled\next-server\app-page.runtime.dev.js:39:7290)
at async D:\learn\testui\my-app\node_modules\next\dist\compiled\next-server\app-page.runtime.dev.js:39:10360
at async Promise.all (index 0)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Browser/Device (if applicable)

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@snake65719
Copy link
Author

with create-next-app

@RobinMalfait
Copy link

Hey!

This typically means that you have multiple versions of React installed. Can you create and share a minimal reproduction repo?

In the meantime, you can also remove the .next folder and node_modules and re-install dependencies using npm install. Once that is done, restart the dev server.

Additionally, you can use npm ls react which shows you a try where React is used (and which version).

@RobinMalfait RobinMalfait self-assigned this May 21, 2024
@RobinMalfait RobinMalfait added the needs repro A reproduction of the bug (GitHub repo, CodeSandbox) is needed label May 21, 2024
@reinink
Copy link
Member

reinink commented May 27, 2024

Hey! Going to close this one since we haven't heard back, but feel free to reopen a new issue if you're able to provide a minimal reproduction of this 👍

@reinink reinink closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro A reproduction of the bug (GitHub repo, CodeSandbox) is needed
Projects
None yet
Development

No branches or pull requests

3 participants