Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-plugin-netlify-cms react-18 require.resolve #35364

Closed
2 tasks done
kspeyanski opened this issue Apr 7, 2022 · 0 comments · Fixed by #35365
Closed
2 tasks done

gatsby-plugin-netlify-cms react-18 require.resolve #35364

kspeyanski opened this issue Apr 7, 2022 · 0 comments · Fixed by #35365
Labels
topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label type: bug An issue or pull request relating to a bug in Gatsby

Comments

@kspeyanski
Copy link
Contributor

kspeyanski commented Apr 7, 2022

Preliminary Checks

Description

Hello,

Currently both the latest and next tags of the gatsby-plugin-netlify-cms throw an error when used with react18:

Package subpath './umd/react.production.min.js' is not defined

The issue can be reproduced with the default gatsby-starter-netlify-cms

Reproduction Link

https://www.gatsbyjs.com/starters/netlify-templates/gatsby-starter-netlify-cms

Steps to Reproduce

  1. Run npx gatsby new gatsby-starter-netlify-cms https://github.com/netlify-templates/gatsby-starter-netlify-cms
  2. Install react@18 and react-dom@18
  3. Run gatsby develop
  4. pain

Expected Result

No error!

Actual Result

An error is being thrown:

Package subpath './umd/react.production.min.js' is not defined

Environment

System:
    OS: macOS 12.2.1
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Languages:
    Python: 2.7.18 - /usr/bin/python
  Browsers:
    Chrome: 100.0.4896.75
    Edge: 100.0.1185.29
    Firefox: 96.0.2
    Safari: 15.3
  npmPackages:
    gatsby: ^4.0.0 => 4.11.2
    gatsby-plugin-image: ^2.0.0 => 2.11.1
    gatsby-plugin-netlify: ^3.14.0 => 3.14.0
    gatsby-plugin-netlify-cms: ^6.0.0 => 6.11.0
    gatsby-plugin-purgecss: ^6.0.0 => 6.1.1
    gatsby-plugin-react-helmet: ^5.0.0 => 5.11.0
    gatsby-plugin-sass: ^5.0.0 => 5.11.1
    gatsby-plugin-sharp: ^4.0.0 => 4.11.1
    gatsby-remark-copy-linked-files: ^5.0.0 => 5.11.0
    gatsby-remark-images: ^6.0.0 => 6.11.1
    gatsby-remark-relative-images: ^0.3.0 => 0.3.0
    gatsby-source-filesystem: ^4.0.0 => 4.11.1
    gatsby-transformer-remark: ^5.0.0 => 5.11.1
    gatsby-transformer-sharp: ^4.0.0 => 4.11.0

Config Flags

N/A

@kspeyanski kspeyanski added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 7, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 7, 2022
@imjoshin imjoshin added topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants