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

Module '"@uiw/react-markdown-preview/nohighlight"' has no exported member 'MarkdownPreviewProps' #605

Closed
faustman opened this issue Dec 16, 2023 · 2 comments

Comments

@faustman
Copy link

Hi,
I'm trying to integrate editor into Laravel inertia.js project,
but got this error:

npm run build

> build
> tsc && vite build && vite build --ssr

node_modules/@uiw/react-md-editor/esm/Types.d.ts:2:15 - error TS2614: Module '"@uiw/react-markdown-preview/nohighlight"' has no exported member 'MarkdownPreviewProps'. Did you mean to use 'import MarkdownPreviewProps from "@uiw/react-markdown-preview/nohighlight"' instead?

2 import type { MarkdownPreviewProps } from '@uiw/react-markdown-preview/nohighlight';
                ~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/@uiw/react-md-editor/esm/Types.d.ts:2

not sure what to do.
If someone could help me with this, it would be great.
Thanks!

jaywcjlove added a commit to uiwjs/react-markdown-preview that referenced this issue Dec 17, 2023
github-actions bot added a commit to uiwjs/react-markdown-preview that referenced this issue Dec 17, 2023
jaywcjlove referenced this issue in uiwjs/react-markdown-preview Dec 17, 2023
@jaywcjlove
Copy link
Member

@faustman Fixed the type export problem, you may need to delete package-lock.json and node_modules and reinstall the dependencies.

@faustman
Copy link
Author

Thank you! Works as expected now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants