EnCiv / enciv-home

the EnCiv home page
0 stars 2 forks source link

ESM Modules #18

Open ddfridley opened 5 months ago

ddfridley commented 5 months ago

When using the latest version of react-markdown, we are unable to run on the server side, it throws an error saying the ESM modules are require.

ESM modules in node seem to be the way of the future, so we should figure out how to build this repo this way.

To duplicate the problem:

$ npm install react-markdown@8.0.6
$ npm run dev
WangYufeng1990 commented 1 month ago
image image

David, I tried this react-markdown@8.0.6 version, I got my server running normally. Here is the screenshot