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
appDir cannot read properties of null (reading useContext) @ build #41931
Comments
Read this comment #41929 (comment) |
I'm getting a similar error, but without using any react hooks. Using Tailwind CSS in this build tho, heard that Turbopack doesn't support Tailwind, is it why this is happening? My landing page at import Hero from '../components/landing/Hero';
export default function Home() {
return (
<div>
<Hero />
</div>
);
} Hero component at import Image from 'next/image';
import ProfileImage from '../../public/hero/new.png';
function Hero() {
return (
<div className="my-36 md:my-10 flex justify-evenly items-center">
<div className="space-y-2 w-full md:w-1/2">
<h2 className="font-bold text-3xl">Hey there!</h2>
...
</div> Edit: I was able to fix this by removing the |
@GeoBrodas It seems P.S. - I am not the maintainer of the Next Js, this is an unofficial statement, I might be wrong :) |
hmm ok, makes sense |
Thanks for posting this @GeoBrodas I was having the same problem and fixed it by removing the |
Yea I figured as much, glad I could help |
Related to the build failure from #41931 We need to bundle `next/head` so that it can appear in the flight-client-manifest, so we changed the behavior to not treat it as non externals. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
Closed by #43425 |
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
OS
Mac
"next": "^13.0.0",
"react": "^18.2.0",
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
I get this Build error when using appdir experimental / swc No error when not using appdir experimental
Expected Behavior
No error w/ appdir
Link to reproduction
n/a
To Reproduce
Framer motion with nextjs 13?
The text was updated successfully, but these errors were encountered: