remark-gfm: TypeError: Cannot read properties of undefined (reading 'inTable') in v4.0.0
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
const test = `hello world \`call' hello world \`call'`
With
<ReactMarkdown remarkPlugins={[remarkGfm]}>
{test}
</ReactMarkdown>
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
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 23 (11 by maintainers)
Commits related to this issue
- rollback `remark-gfm` to `v3.0.1` see https://github.com/remarkjs/remark-gfm/issues/57 — committed to sreetamdas/sreetamdas.com by sreetamdas 9 months ago
- chore(deps): downgrade `remark-gfm` to v3 (#5096) See https://github.com/remarkjs/remark-gfm/issues/57 — committed to SAP/ui5-webcomponents-react by Lukas742 9 months ago
- ⬇️(react) downgrade remark-gfm to 3.0.1 It was causing crashes because the other MDX deps are not already up-to-date to support remark-gfm 4.0.0 for now. See https://github.com/remarkjs/remark-gfm/is... — committed to openfun/cunningham by NathanVss 9 months ago
- ⬇️(react) downgrade remark-gfm to 3.0.1 It was causing crashes because the other MDX deps are not already up-to-date to support remark-gfm 4.0.0 for now. See https://github.com/remarkjs/remark-gfm/is... — committed to openfun/cunningham by NathanVss 9 months ago
- ⬇️(react) downgrade remark-gfm to 3.0.1 It was causing crashes because the other MDX deps are not already up-to-date to support remark-gfm 4.0.0 for now. See https://github.com/remarkjs/remark-gfm/is... — committed to openfun/cunningham by NathanVss 9 months ago
- fix: update remark-gfm to version 3.0.1 in package.json and yarn.lock — committed to kaiiy/better-chat-gpt by kaiiy 8 months ago
- build(contentlayer): add remark-gfm plugin remark-gfm version pinned to 3.0.1 because of dependency issues in contentlayer/remark (cannot update to latest version 4.0.0). See: - https://github.com/c... — committed to chrjl/portfolio--react-singlepage by chrjl 8 months ago
- chore: update packages #73 - remark-gfm seems like [this issue has been resolved](https://github.com/remarkjs/remark-gfm/issues/57) — committed to and-voila/labs by srizvi 8 months ago
- use remark-gfm@3 since v4 is still getting rolled out see https://github.com/remarkjs/remark-gfm/issues/57 — committed to ryanrishi/ryanrishi.com by ryanrishi 8 months ago
- Next.js 14 (#121) * upgrade dependencies * wip add contentlayer * wip update links and head tags * get next-themes working kinda * create-react-app for next 14 * idk, remove purgecss? ... — committed to ryanrishi/ryanrishi.com by ryanrishi 7 months ago
- build(contentlayer): add remark-gfm plugin remark-gfm version pinned to 3.0.1 because of dependency issues in contentlayer/remark (cannot update to latest version 4.0.0). See: - https://github.com/c... — committed to chrjl/portfolio--contentlayer by chrjl 8 months ago
- fix: インラインコードブロックがレンダリングできないためremark-gfmのバージョンを下げる ref: https://github.com/remarkjs/remark-gfm/issues/57 — committed to MH4GF/mysite by MH4GF 7 months ago
- 📝 Remove strikethrough in documentation - mdx's `remark-gfm` plugin does not work since its latest major version https://github.com/remarkjs/remark-gfm/issues/57 — committed to juliencrn/usehooks-ts by juliencrn 5 months ago
A major version release is rolling out across all:
unified
,remark
,rehype
, andmicromark
packages. This includes both type changes (static analysis error) and changes to the parser (potential runtime error) if the major versions are mismatched.@ky1ejs this issue,
remark-gfm
withreact-markdown
is resolved, and has been for a while.There are 500+ unified packages being updated so:
You (@ky1ejs) appear to be asking about
remark-gfm
withmdx
, that is in progress currently, you can track the progress towards the next mdx release in the mdx repo itself.You can make a PR to
remark-preset-prettier
, most likely.Run
npm why remark-gfm
and look for who uses the the outdated version.Hey @ChristianMurphy, thank you and everyone for the fantastic work here!
What’s a reasonable expectation to have for this to be resolved?
I noticed that it’s approaching 2 months since the initial major releases were made, so I wondered how much longer it will take for them to be in sync.
Thanks again!
remark-preset-prettier
doesn’t have any dependencies.@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.
Duplicate of https://github.com/remarkjs/react-markdown/issues/763