Skip to content

2.0.14 Not only doesn't render, but causes everything else to not render? #40

@greglearns

Description

@greglearns

UPDATE: 2.0.14 has the error described below, but 2.0.13 works without any problems.

Ok, this is super strange.

I'm using the most recent version of SolidMarkdown and SolidJS, and followed the directions in the SolidMarkdown README to add this to an existing project of mine that is stable and known to work.

  1. When I use it the normal way, it doesn't render, and in fact, it causes all other Solid.js components to not render, even when I tried wrapping it in a SolidJS ErrorBoundary (not shown below).
// normal solid component code here...
return (
  <div>
     this will not be displayed if SolidMarkdown is uncommented below.
        {/*
        <SolidMarkdown children={"I've tried everything in this string and it will fail no matter what."} />
        */}
  </div>
)
  1. The other strange thing is that just referencing in a component will also cause that component and all other components to not render. E.g.:
// normal component code here...
try {
    const markdown = `
# This is a title

- here's
- a
- list
`;

    console.warn(
      "This will not be printed to the console if SolidMarkdown is included below.",
    );
    const boom = (
      <Suspense>
        {/*
        <SolidMarkdown children={markdown} />
        */}
        heeeee
      </Suspense>
    );
    console.warn(
      "This also will not be printed to the console if SolidMarkdown is included above.",
    );
  } catch (err) {
    console.warn(
      "This will not be printed to the console if SolidMarkdown is included above.",
    );
    console.warn("BOOM", err);
  }
  return <div>This will not render if SolidMarkdown is included above, even when it is included in a try/catch block</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions