这是indexloc提供的服务,不要输入任何密码
Skip to content

CVEs found  #235

@ranopriyo-neogy

Description

@ranopriyo-neogy

Screenshot 2023-04-27 at 6 45 12 PM

Screenshot 2023-04-27 at 6 45 37 PM

Can you upgrade them?

I tried upgrading them and ran on node 16.0.0. Got below issue.

yarn run v1.22.17
$ gatsby develop
node:internal/modules/cjs/loader:1125
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/ranopriyo.neogy/gatsby-platform-docs-v2/node_modules/gatsby-recipes/node_modules/remark-mdx/index.js
require() of ES modules is not supported.
require() of /Users/ranopriyo.neogy/gatsby-platform-docs-v2/node_modules/gatsby-recipes/node_modules/remark-mdx/index.js from
/Users/ranopriyo.neogy/gatsby-platform-docs-v2/node_modules/gatsby-recipes/dist/graphql-server/server.js is an ES module file as it is a .js file whose nearest parent package.json contains
"type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from
/Users/ranopriyo.neogy/gatsby-platform-docs-v2/node_modules/gatsby-recipes/node_modules/remark-mdx/package.json.

    at new NodeError (node:internal/errors:363:5)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1125:13)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/Users/ranopriyo.neogy/gatsby-platform-docs-v2/node_modules/gatsby-recipes/dist/graphql-server/server.js:52:17)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32) {
  code: 'ERR_REQUIRE_ESM'
}


info We're shipping new features! For final testing, we're rolling them out first to a small % of Gatsby users
and your site was automatically chosen as one of them. With your help, we'll then release them to everyone in the next minor release.

We greatly appreciate your help testing the change. Please report any feedback good or bad in the umbrella issue. If you do encounter problems, please disable the flag by setting it to false in
 your gatsby-config.js like:

flags: {
  THE_FLAG: false
}

The following flags were automatically enabled on your site:
- DEV_SSR · (Umbrella Issue (https://gatsby.dev/dev-ssr-feedback)) · Server Side Render (SSR) pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do
full builds.

success open and validate gatsby-configs - 0.161s

 ERROR 

Joi.subPlugins is not a function



  TypeError: Joi.subPlugins is not a function
  
  - gatsby-node.js:22 Object.pluginOptionsSchema
    [gatsby-platform-docs-v2]/[gatsby-transformer-remark]/gatsby-node.js:22:18
  
  - validate.ts:199 map
    [gatsby-platform-docs-v2]/[gatsby]/src/bootstrap/load-plugins/validate.ts:199:39
  
  - Array.map
  
  - validate.ts:188 validatePluginsOptions
    [gatsby-platform-docs-v2]/[gatsby]/src/bootstrap/load-plugins/validate.ts:188:13
  
  - validate.ts:311 validateConfigPluginsOptions
    [gatsby-platform-docs-v2]/[gatsby]/src/bootstrap/load-plugins/validate.ts:311:37
  
  - index.ts:91 loadPlugins
    [gatsby-platform-docs-v2]/[gatsby]/src/bootstrap/load-plugins/index.ts:91:9
  
  - initialize.ts:284 initialize
    [gatsby-platform-docs-v2]/[gatsby]/src/services/initialize.ts:284:34
  

not finished load plugins - 1.683s

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions