docz icon indicating copy to clipboard operation
docz copied to clipboard

Error: Cannot find module 'typescript' docz

Open giovanesantossilva opened this issue 2 years ago • 2 comments

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

  • docz version: 2.4.0
  • OS: macOS 13.0 22A380 x86_64
  • Node/npm version: 18.12.0/8.19.2

giovanesantossilva avatar Nov 09 '22 13:11 giovanesantossilva

the same issue, how can I fix it?

mishatron avatar Feb 23 '23 10:02 mishatron

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

DanielcBatista avatar Oct 10 '23 14:10 DanielcBatista