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: Cannot find module 'typescript' docz #1743

Open giovanesantossilva opened 1 year ago

giovanesantossilva commented 1 year ago

Bug Report

Describe the bug

I configured the docs not to use typescript even so it gives this error!

To Reproduce

Doczrc.js

export default {
    typescript: false
}

Error:

$ docz dev --config ./doczrc.js
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'typescript'
Require stack:

Environment

mishatron commented 1 year ago

the same issue, how can I fix it?

DanielcBatista commented 9 months ago

Try npm install typescript. You need typescript to build the app.