doczjs / docz

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

yarn create docz-app my-docz-app --example typescript error,TypeError: e.destroy is not a function #1648

Closed royue closed 2 years ago

royue commented 2 years ago

Bug Report

Describe the bug

TypeError: e.destroy is not a function.

To Reproduce yarn create docz-app my-docz-app --example typescript

Expected behavior

run yarn create docz-app my-docz-app --example typescript error

Environment

Additional context/Screenshots

renatobenks commented 2 years ago

duplicated by #1452

Additionally, we're still thinking about how much sense there's in having a create-docz-app, once it's not the official way to use docz, even install it, and it's not officially supported by docz properly, as has said in this other issue. However, you're still able to install docz directly in your codebase without any problem, which in case you don't have, you can use create-react-app, and then, install it afterward. How it does sound to you?

royue commented 2 years ago

Thanks for your answer. I have the same problem with create-react-app,I am looking for a working example.

image .docz/.cache/develop-static-entry.js: @babel/preset-env: The plugins/built-ins 'es.regexp.dot-all' passed to the 'exclude' option are not valid.

renatobenks commented 2 years ago

Which version did you try? Probably is your node version, I just have tried it here, and it worked perfectly.