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

When I try to run the project in the development environment, I get the following error: #1748

Open CanYangTang opened 11 months ago

CanYangTang commented 11 months ago

Bug Report

*Describe the bug When I try to run the project in the development environment, I get the following error: A clear and concise description of what the bug is. Building app success open and validate gatsby-configs - 0.715s success load plugins - 0.487s success onPreInit - 0.026s success initialize cache - 0.016s success copy gatsby files - 0.059s success onPreBootstrap - 0.862s success createSchemaCustomization - 0.016s ⠼ source and transform nodes ⚠ warning No cache was found with your props definitions ⚠ warning We'll parse your components to get props from them success Checking for changed pages - 0.001s success source and transform nodes - 0.971s success building schema - 0.191s info Total nodes: 65, SitePage nodes: 1 (use --verbose for breakdown) success createPages - 0.002s success Checking for changed pages - 0.000s success createPagesStatefully - 0.142s success update schema - 0.019s success write out redirect data - 0.003s success onPostBootstrap - 0.001s info bootstrap finished - 5.439s success onPreExtractQueries - 0.001s success extract queries from components - 0.041s success write out requires - 0.003s success run static queries - 0.009s - 1/1 110.68/s success run page queries - 0.009s - 3/3 348.59/s warn isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration at isModuleDeclaration (/Users/tangcanyang/Code/custom/react/docz/docz-app-c ra/node_modules/@babel/types/lib/validators/generated/index.js:2740:35) at PluginPass.Program (/Users/tangcanyang/Code/custom/react/docz/docz-app-cr a/node_modules/babel-plugin-lodash/lib/index.js:102:44)

ERROR

error:0308010C:digital envelope routines::unsupported

Error: error:0308010C:digital envelope routines::unsupported

not finished Building development bundle - 1.015s

harryli0088 commented 10 months ago

Same here! I'm trying to use docz for a create-react-app project with Node version 18.13.0

Part of my package.json:

{
  "dependencies": {
    "docz": "^2.4.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1"
  },
  "devDependencies": {
    "react-scripts": "^5.0.1"
  }
}