Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

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

Open
CanYangTang opened this issue Aug 8, 2023 · 1 comment

Comments

@CanYangTang
Copy link

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

  • hash:71 new Hash
    node:internal/crypto/hash:71:19

  • node:crypto:133 Object.createHash
    node:crypto:133:10

  • createHash.js:135 module.exports
    [docz-app-cra]/[gatsby]/[webpack]/lib/util/createHash.js:135:53

  • NormalModule.js:417 NormalModule._initBuildHash
    [docz-app-cra]/[gatsby]/[webpack]/lib/NormalModule.js:417:16

  • NormalModule.js:471 handleParseError
    [docz-app-cra]/[gatsby]/[webpack]/lib/NormalModule.js:471:10

  • NormalModule.js:503
    [docz-app-cra]/[gatsby]/[webpack]/lib/NormalModule.js:503:5

  • NormalModule.js:358
    [docz-app-cra]/[gatsby]/[webpack]/lib/NormalModule.js:358:12

  • LoaderRunner.js:373
    [docz-app-cra]/[loader-runner]/lib/LoaderRunner.js:373:3

  • LoaderRunner.js:214 iterateNormalLoaders
    [docz-app-cra]/[loader-runner]/lib/LoaderRunner.js:214:10

  • LoaderRunner.js:221 iterateNormalLoaders
    [docz-app-cra]/[loader-runner]/lib/LoaderRunner.js:221:10

  • LoaderRunner.js:236
    [docz-app-cra]/[loader-runner]/lib/LoaderRunner.js:236:3

  • LoaderRunner.js:111 context.callback
    [docz-app-cra]/[loader-runner]/lib/LoaderRunner.js:111:13

  • index.js:44
    [docz-app-cra]/[gatsby]/[babel-loader]/lib/index.js:44:71

not finished Building development bundle - 1.015s

@harryli0088
Copy link

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"
  }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@harryli0088 @CanYangTang and others