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

starter hello-world babel helper-compilation-targets error #22145

Closed
comoser opened this issue Mar 10, 2020 · 2 comments
Closed

starter hello-world babel helper-compilation-targets error #22145

comoser opened this issue Mar 10, 2020 · 2 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@comoser
Copy link
Contributor

comoser commented Mar 10, 2020

Description

Following the tutorial to create a new hello-world gatsby application on page: https://www.gatsbyjs.org/tutorial/part-zero/ we are faced with a compilation error when running gatsby develop IF we are on node v.13.10+

Steps to reproduce

On node v13.10.x when using gatsby new hello-world https://github.com/gatsbyjs/gatsby-starter-hello-world as in the tutorial of the official Gatsby page the following dependency @babel/helper-compilation-targets is locked in package-lock.json with the version 7.8.3.

When trying to follow the run instructions we do:
cd hello-world
gatsby develop

and we are met with the following error:

ERROR #98123  WEBPACK

Generating SSR bundle failed

[BABEL] ~/gatsby-tests/test/.cache/develop-static-entry.js: No "exports" main resolved in ~/gatsby-tests/test/node_modules/@babel/helper-compilation-targets/package.json

File: .cache/develop-static-entry.js

Expected result

The starter hello-world project should run with gatsby develop on localhost.

Actual result

The starter hello-world project gives an error related to a babel helper plugin.

ERROR #98123  WEBPACK

Generating SSR bundle failed

[BABEL] ~/gatsby-tests/test/.cache/develop-static-entry.js: No "exports" main resolved in ~/gatsby-tests/test/node_modules/@babel/helper-compilation-targets/package.json

File: .cache/develop-static-entry.js

Environment

System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 13.10.1 - /usr/local/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.13.7 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 80.0.3987.132
    Firefox: 73.0.1
    Safari: 13.0.5
@comoser comoser added the type: bug An issue or pull request relating to a bug in Gatsby label Mar 10, 2020
@comoser
Copy link
Contributor Author

comoser commented Mar 10, 2020

Will submit a PR for this fix

comoser added a commit to comoser/gatsby that referenced this issue Mar 11, 2020
comoser added a commit to comoser/gatsby that referenced this issue Mar 11, 2020
pieh pushed a commit that referenced this issue Mar 11, 2020
* fix(babel helper): fix version for compilation targets

#22145

* chore(deps): update dependencies of compilation helper

#22145
@comoser
Copy link
Contributor Author

comoser commented Mar 11, 2020

@gatsbyjs/core issue fixed on #22166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant