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

Package doesn't seem to be usable #1

Open
SoulflareRC opened this issue Aug 20, 2024 · 1 comment
Open

Package doesn't seem to be usable #1

SoulflareRC opened this issue Aug 20, 2024 · 1 comment

Comments

@SoulflareRC
Copy link

SoulflareRC commented Aug 20, 2024

I installed the package using npm install react-markdown-toc, but I couldn't import anything from the package.
I did

import { TOC } from 'react-markdown-toc/client'

but I got

Server Error
Error: Cannot find module '..\node_modules\react-markdown-toc\dist\components\client' imported from ..\node_modules\react-markdown-toc\dist\client.js
@zhangyu1818
Copy link
Owner

zhangyu1818 commented Aug 21, 2024

I created a minimal example repository, please see if it solves your error.

Edit React Markdown TOC

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