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') in v4.0.0 #57
Comments
Duplicate of remarkjs/react-markdown#763 |
This comment has been minimized.
This comment has been minimized.
Hi! Thanks for taking the time to contribute! Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related. Thanks, |
The updates are making their way through several hundred packages, for now pin the previous major until the new |
@ChristianMurphy I'm a bit confused, how is this a duplicate of a typescript related issue? This is not a typescript error, this is a runtime error. |
A major version release is rolling out across all: |
Is this issue fixed yet? |
@AshuGuptaGamer there is nothing to "fix" it isn't a bug. The major releases are still rolling out across the |
remark-gfm version pinned to 3.0.1 because of dependency issues in contentlayer/remark (cannot update to latest version 4.0.0). See: - contentlayerdev/contentlayer#558 - remarkjs/remark-gfm#57
Still getting this error after updating to:
|
You can make a PR to Run |
|
Thanks for much for reviewing. Here's what I got after running
Is where we trigger the problem. If I remove |
This looks like a screenshot from the VSCode remark extension. I’ve been holding back updating this until |
Thanks all. This seems to resolve the issue by forcibly overriding in
|
- mdx's `remark-gfm` plugin does not work since its latest major version remarkjs/remark-gfm#57
It is still not fixed, right? And the best approach is syntax-tree/mdast-util-from-markdown#34 (comment)
Is it correct? |
It is fixed by now. See https://github.com/remarkjs/react-markdown/releases/tag/9.0.0. The comment you linked precedes that release. |
@remcohaszing Thank you for quick response. I got this error with "remark-gfm": "4.0.0", and recommendation here contentlayerdev/contentlayer#611 (comment) to check this issue. Or do we mean different issues?
package.json
|
I suggest you run You can try to fix it by removing |
Thank you for your patience and help. I added It didn't help. But I add '"mdast-util-frontmatter": "2.0.1"' in addition:
Now it works. Just for google, if other devs will have the same compatibility issue
|
You should never use |
Should this be reopened? |
This is not a bug. If you’re seeing this, it means some of your dependencies are outdated, but not all. |
Affected packages and versions
4.0.0
Link to runnable example
https://github.com/arechsteiner/gfm-bug/blob/main/src/App.tsx#L12
Steps to reproduce
Attempt to render
With
Expected behavior
Previously this was no issue.
Actual behavior
TypeError: Cannot read properties of undefined (reading 'inTable')
Runtime
No response
Package manager
yarn 1
OS
macOS
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: