-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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.
- 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>
)- 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>marcuscastelo
Metadata
Metadata
Assignees
Labels
No labels