Skip to content
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

Table parse issue #58

Closed
4 tasks done
tfsomrat opened this issue Sep 20, 2023 · 5 comments
Closed
4 tasks done

Table parse issue #58

tfsomrat opened this issue Sep 20, 2023 · 5 comments
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@tfsomrat
Copy link

Initial checklist

Affected packages and versions

4.0.0

Link to runnable example

No response

Steps to reproduce

After updating it from 3.0.1 to 4.0.0, I am getting an error "Cannot set properties of undefined (setting 'inTable')". it works fine on version 3.

this is my code

import { MDXRemote } from "next-mdx-remote/rsc";
import remarkGfm from "remark-gfm";

const MDXContent = ({ content }: { content: any }) => {
  const mdxOptions = {
    remarkPlugins: [remarkGfm],
  };

  return (
    <>
      <MDXRemote
        source={content}
        options={{ mdxOptions }}
      />
    </>
  );
};

export default MDXContent;

Expected behavior

the table should render

Actual behavior

getting error Cannot set properties of undefined (setting 'inTable')

Runtime

Node v17

Package manager

npm 8

OS

macOS

Build and bundle tools

Next.js

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Sep 20, 2023
@activatedgeek
Copy link

activatedgeek commented Sep 20, 2023

This is perhaps a duplicate of #57.

@ChristianMurphy
Copy link
Member

Duplicate of #57

@ChristianMurphy ChristianMurphy marked this as a duplicate of #57 Sep 20, 2023
@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
@github-actions

This comment has been minimized.

@ChristianMurphy
Copy link
Member

A major version release is rolling out across all: mdx, unified, remark, rehype, and micromark packages.
This includes both type changes (static analysis error) and changes to the parser (potential runtime error) if the major versions are mismatched.

Hold on version 3 of remark-gfm, until the next major of MDX is released

@ChristianMurphy ChristianMurphy added 👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Sep 21, 2023
@github-actions
Copy link

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,
— bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

3 participants