IGassmann / remark-directive-rehype

Remark plugin to enable Markdown directives to be parsed as HTML.
The Unlicense
30 stars 3 forks source link

Getting Module not found error #2

Closed pkonda2019 closed 2 years ago

pkonda2019 commented 2 years ago

Hey @IGassmann I am getting below error even after I installed the module.

Module not found: Can't resolve 'remark-directive-rehype'
  14 | });
  15 | // import remarkDirectiveRehype from "remark-directive-rehype";
> 16 | const remarkDirectiveRehype = dynamic(() => import("remark-directive-rehype"), {
     |                                                                               ^
  17 |   ssr: false,
  18 | });

Package.json

"remark-directive": "^2.0.1",
"remark-directive-rehype": "^0.4.0",

Can you please help me out here ?

revelt commented 2 years ago

might be related to https://github.com/syntax-tree/unist-util-map/issues/6

IGassmann commented 2 years ago

This is now fixed since https://github.com/IGassmann/remark-directive-rehype/releases/tag/v0.4.1

geyang commented 1 year ago

Having similar issue:

Module not found: Can't resolve 'remark-directive-rehype' in