-
Notifications
You must be signed in to change notification settings - Fork 27k
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: Cannot read properties of null (reading 'useState') #42588
Comments
I have similar problems with our existing big application. We upgraded to next 13 just fine, but as soon as we enable the appDir feature it fails with Unfortunately I cannot share the code, it's a private repo. |
have similar issues here, even though I've already used the directive |
@gadingnst Mind sharing your code? I'm curious the place that you added the |
One potential risk is ESM dependencies that can't be bundled will cause a build error. This also means that the `esmExternals` configuration will be affected. Closes #42249, closes #42588. Related: #1395. ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 107.0.5304.87 (Official Build) (64-bit)
How are you deploying your application? (if relevant)
No response
Describe the Bug
After upgrading an existing website to Next 13, when
appDir
is enabled swiper code fails. The issue is reported to the swiper team here, but they said it's related to the Next.Expected Behavior
Swiper and Next 13 should work together, or an informative message should be shown to help easier debugging.
Link to reproduction
https://github.com/Nefcanto/swiper-bug
To Reproduce
1- Clone
2-
npm install
3-
npm run dev
4- go to localhost:3000
5- You should see TypeError: Cannot read properties of null (reading 'useState')
The text was updated successfully, but these errors were encountered: