zhangyu1818 / react-markdown-toc

Generating a Table of Contents (TOC) from Markdown.
https://zhangyu1818.github.io/react-markdown-toc/
MIT License
2 stars 0 forks source link

Package doesn't seem to be usable #1

Open SoulflareRC opened 3 months ago

SoulflareRC commented 3 months ago

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 commented 3 months ago

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

Edit React Markdown TOC