-
-
Notifications
You must be signed in to change notification settings - Fork 206
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 undefined (reading '_context') #1040
Comments
I just run into the same error, all I've done was init a nextjs project with
I then added the
and the locales files:
then changed the default nextjs
Then by running
Hope this can help ! Edit: By switching to next version 13.3.1 things works |
As of next 13.4, the app dir is stable and will not be in the next.config.js For me, adding this line, Fixed the issue. I guess the detection of app dir is dependent on this |
Currently next-translate-plugin is taking account |
Try next-translate-plugin 2.3.0-canary.2 prerelease please 🙏 It should be fixed |
The canary version works for me, thank you so much! |
Cool! Waiting for more feedback @martinbrueckenwirt @bregtemundo @Baptistemontan |
It works.
|
Nice @Gyurmatag , thanks for the feedback! 😊 |
Sorry I had a lot of work lately, I'm getting back on the project and when pasting
in the depedencies I get back
|
@Baptistemontan about the dependencies problem is fixed in:
|
works for me |
This error is still there for me,
And here is the error:
|
@chtibizoux it should work, can you verify that |
I have downloaded source code
|
@chtibizoux Just tried but works fine, I can't reproduce it. Would you tell me your node version and check the grep "next-translate" package-lock.json && echo "Node version:" && node -v Thanks 🙏 |
Node version: |
@chtibizoux thanks, I see that the app dir detection was looking without normalizing the slashes and probably was not detecting correctly in windows, now should work with next-translate-plugin 2.4.2. Can you confirm it? Thanks! |
New version 2.4.2 is working, thanks a lot ! |
@chtibizoux amazing! Thanks for your feedback and contribution to do next-translate more robust |
"dependencies": {
"@types/node": "^20.0.0",
"@types/react": "^18.2.5",
"@types/react-dom": "^18.2.4",
"eslint": "^8.39.0",
"eslint-config-next": "^13.4.1",
"negotiator": "^0.6.3",
"next": "^13.4.1",
"next-translate": "^2.0.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^12.2.2",
"typescript": "5.0.4"
},
npm 8.19.2
Windows 11
I am working on a new site. I upgraded from nextjs13.2.4 ==> nextjs 13.4
This is the error
ready started server on 0.0.0.0:3000, url: http://localhost:3000
at Home (./src/app/page.tsx:23:100)
at stringify ()
null
at Home (./src/app/page.tsx:23:100)
at stringify ()
digest: "2075757740"
null
at Home (./src/app/page.tsx:23:100)
at stringify ()
null
at Home (./src/app/page.tsx:23:100)
at stringify ()
digest: "2075757740"
null
The text was updated successfully, but these errors were encountered: