Closed paraillegal closed 3 years ago
Using this library with the Snowpack build-tool produces the following error when trying to execute snowpack dev:
snowpack dev
[snowpack] ! installing dependencies... [snowpack] Cannot find module '/workspace/example-project/node_modules/react-remark/dist/react-markdown.esm.js' Require stack: - /workspace/example-project/node_modules/esinstall/lib/index.js - /workspace/example-project/node_modules/snowpack/lib/commands/install.js - /workspace/example-project/node_modules/snowpack/lib/sources/local.js - /workspace/example-project/node_modules/snowpack/lib/util.js - /workspace/example-project/node_modules/snowpack/lib/commands/add-rm.js - /workspace/example-project/node_modules/snowpack/lib/index.js - /workspace/example-project/node_modules/snowpack/index.bin.js
I believe this is because the module declaration in package.json incorrect refers to a file named react-markdown.esm.js instead of react-remark.esm.js. https://github.com/remarkjs/react-remark/blob/main/package.json#L14
module
package.json
react-markdown.esm.js
react-remark.esm.js
Updating that property for my local installed version of the library seemed to have fixed the issue.
resolved in #13
Using this library with the Snowpack build-tool produces the following error when trying to execute
snowpack dev
:I believe this is because the
module
declaration inpackage.json
incorrect refers to a file namedreact-markdown.esm.js
instead ofreact-remark.esm.js
. https://github.com/remarkjs/react-remark/blob/main/package.json#L14Updating that property for my local installed version of the library seemed to have fixed the issue.