doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.55k stars 1.45k forks source link

Error in setting up development environment #1731

Open Oyedare opened 2 years ago

Oyedare commented 2 years ago

I'm trying to contribute to the project but when i run yarn dev, it throws an error in the terminal Screenshot (11) .

Psypher1 commented 2 years ago

So it's not just me facing this

Oyedare commented 2 years ago

Yeah. I don't know if this problem can be solved, i wish i could tag the owner of the repo but don't know their tag.

GeorgianStan commented 2 years ago

I'm also facing issues with the setup. At first, it required typescript to be installed, which is not mentioned in the guide. Second when I run npm run docz:dev I receive the following error Error [ERR_REQUIRE_ESM]: Must use import to load ES Module

Psypher1 commented 2 years ago

A workaround I found while doing something unrelated is to forgo the instructions, copy the packages into your package.json , run install. Then hope and pray it works

"docz": "latest",
"prop-types": "^15.8.1"