question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS error with v7.0.0 - Type error: Module '"../../../node_modules/markdown-to-jsx/dist"' has no exported member 'MarkdownOptions'. Did you mean to use 'import MarkdownOptions from "../../../node_modules/markdown-to-jsx/dist"' instead?

See original GitHub issue

The TS types haven’t been published to definitelyTyped @types/markdown-to-jsx and upgrading to v7.0.0 crashes because of some incompatibility.

I didn’t encounter this issue locally, but I did encounter it when deploying to Vercel: image

I’ll rollback to 6.11.2 until newer TS types are added.

"markdown-to-jsx": "7.0.0",
"@types/markdown-to-jsx": "6.11.2",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
probablyupcommented, Sep 8, 2020

a renders as an a, you don’t need to supply component unless you’re actually overriding the rendered output

Sent from my iPhone

On Sep 8, 2020, at 9:51 AM, Vadorequest notifications@github.com wrote:

Also, the type Override seems too restrictive:

declare type Override = RequireAtLeastOne<{ component: React.ComponentType<any>; props: Object; }> | React.ComponentType<any>; I was using a component: ‘a’, and it worked well, but now I have a TS error because ‘a’ isn’t assignable to ComponentType.

Full code: https://github.com/UnlyEd/next-right-now/blob/286ea44c870bf7da1a5de2b5fd33fd7825d7a867/src/components/utils/Markdown.tsx#L29

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve the "module has no exported member" error?
Remove the line below from your statement export module Demo. and use it like export class ViewModel { constructor(public test: string) { }...
Read more >
Module has no exported member error after upgrading to v7.0.0
I 'm currently working on a big client project due today, but should have time to circle back and take a closer look...
Read more >
Solved: TypeScript compile errors - Esri Community
Solved: I have a basic index.ts file: import ArcGISMap from ... -demo/node_modules/@types/estree/index"' has no exported member named ...
Read more >
Typescript errors when using @polkadot/api
I 'm assuming you meant import "@polkadot/api-augment/polkadot"; with the @ sign? Adding that line ups the error count from 127 to 767.... I...
Read more >
Module '"@prismicio/client"' has no exported member 'Content'
As title states, I'm getting this error: This is my prismic.ts: import * as prismic from '@prismicio/client'; import * as prismicNext from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found