-
Notifications
You must be signed in to change notification settings - Fork 201
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 'inTable') #558
Comments
+1, but I only have this problem on Vercel. Running But I get another error when running
|
Oh, this seems to be an issue with the latest Contentlayer probably needs updating its dependencies |
I got the same error message since I upgraded my project to Next.js 13.5. |
I updated my project and got these errors as well. Quickly jumped to blaming If I upgrade It's probably still this My website is running with |
@schickling any chance of getting a dependencies update soon? 🙏 |
Many plugins have this similar error, remark math, rehype-highlight, remark codes and box, and soon |
downgrading |
Worked for me, thanks @dewanshDT |
Seems like Contentlayer doesn't support remark 15+ for now, if you take a look at their changelog, they also changed some typings. This also resulted in several type errors on my project, hope this will be fixed soon. |
it really works. I see the issue is happening when I try to write something in a code format. |
issue linked here: contentlayerdev/contentlayer#558
|
The changes are being propagated to the entire remark / rehype ecosystem. |
Any update about solution guys ? I get this error too |
Still getting this error after updating to:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale (upgrades of |
Confirm the issue. #12 4.739 ✘ [ERROR] TypeError: Cannot read properties of undefined (reading 'inTable')
#12 4.739 at Object.exitCodeText (file:///app/node_modules/.pnpm/[email protected]/node_modules/mdast-util-gfm-table/lib/index.js:123:17)
#12 4.739 at compile (file:///app/node_modules/.pnpm/[email protected]/node_modules/mdast-util-from-markdown/lib/index.js:352:40)
#12 4.739 at fromMarkdown (file:///app/node_modules/.pnpm/[email protected]/node_modules/mdast-util-from-markdown/lib/index.js:187:29)
#12 4.739 at parser (file:///app/node_modules/.pnpm/[email protected]/node_modules/remark-parse/lib/index.js:18:12)
#12 4.739 at Function.parse (file:///app/node_modules/.pnpm/[email protected]/node_modules/unified/lib/index.js:273:12)
#12 4.739 at executor (file:///app/node_modules/.pnpm/[email protected]/node_modules/unified/lib/index.js:393:31)
#12 4.739 at new Promise (<anonymous>)
#12 4.739 at Function.process (file:///app/node_modules/.pnpm/[email protected]/node_modules/unified/lib/index.js:380:14)
#12 4.739 at process (file:///app/node_modules/.pnpm/@[email protected]/node_modules/@mdx-js/mdx/lib/util/create-format-aware-processors.js:50:22)
#12 4.739 at onload (file:///app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@mdx-js/esbuild/lib/index.js:151:22) [plugin @mdx-js/esbuild] |
remark gfm 이슈 참고 contentlayerdev/contentlayer#558
thank you, it works!!! |
did you solve it
did you find any solution? |
still have to be on remark-gfm 3.0.1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale |
No update yet? :( |
@nvegater I have managed to mitigate this issue by temporarily switching to a fork: https://github.com/timlrx/contentlayer2. Context: #651 (comment). UPD (2024-07-07) I switched to https://github.com/zce/velite and it’s even better! |
Thanks , it works! |
Thank you it works. it looks like we still have to use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using Next.js v
13.5.1
I get this error when building the projectThe text was updated successfully, but these errors were encountered: