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

Can't resolve 'core-js/.. ' in '.../.cache' #29164

Closed
knnyczr opened this issue Jan 24, 2021 · 2 comments
Closed

Can't resolve 'core-js/.. ' in '.../.cache' #29164

knnyczr opened this issue Jan 24, 2021 · 2 comments
Labels
topic: source-contentful Related to Gatsby's integration with Contentful type: upstream Issues outside of Gatsby's control, caused by dependencies

Comments

@knnyczr
Copy link

knnyczr commented Jan 24, 2021

Description

Trying to gatsby develop/build a client portoflio, running into:

info bootstrap finished - 4.512s
success onPreExtractQueries - 0.001s
success extract queries from components - 0.412s
success write out requires - 0.006s
success run static queries - 0.374s - 6/6 16.04/s
success run page queries - 0.013s - 3/3 230.33/s

 ERROR #98124  WEBPACK

Generating development SSR bundle failed

Can't resolve 'core-js/modules/web.dom.iterable.js' in '/Users/kennycruz/vantrannguyen/.cache'

If you're trying to use a package make sure that 'core-js/modules/web.dom.iterable.js' is installed. If
you're trying to use a local file make sure that the path is correct.

File: .cache/loader.js


 ERROR #98124  WEBPACK

Generating development SSR bundle failed

Can't resolve 'core-js/modules/web.dom.iterable.js' in '/Users/kennycruz/vantrannguyen/.cache'

If you're trying to use a package make sure that 'core-js/modules/web.dom.iterable.js' is installed. If
you're trying to use a local file make sure that the path is correct.

File: .cache/find-path.js


 ERROR #98124  WEBPACK

Generating development SSR bundle failed

Can't resolve 'core-js/modules/web.dom.iterable.js' in '/Users/kennycruz/vantrannguyen/.cache'

If you're trying to use a package make sure that 'core-js/modules/web.dom.iterable.js' is installed. If
you're trying to use a local file make sure that the path is correct.

File: .cache/prefetch.js

not finished Building development bundle - 1.763s

Steps to reproduce

I run gatsby develop or gatsby build and they produce this error on this project:
https://github.com/knnyczr/vantrannguyen

Environment

Run gatsby info --clipboard in your project directory and paste the output here.

  System:
    OS: macOS 11.1
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Shell: 5.0.11 - /usr/local/bin/bash
  Binaries:
    Node: 14.15.3 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.9 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 88.0.4324.96
    Firefox: 69.0.3
    Safari: 14.0.2
  npmPackages:
    gatsby: ^2.31.1 => 2.31.1
    gatsby-image: ^2.3.4 => 2.10.0
    gatsby-plugin-manifest: ^2.4.22 => 2.11.0
    gatsby-plugin-react-helmet: ^3.2.4 => 3.9.0
    gatsby-plugin-sass: ^2.3.12 => 2.8.0
    gatsby-plugin-sharp: ^2.5.6 => 2.13.1
    gatsby-source-contentful: ^4.5.1 => 4.5.1
    gatsby-source-filesystem: ^2.3.24 => 2.10.0
    gatsby-transformer-remark: ^2.7.3 => 2.15.0
    gatsby-transformer-sharp: ^2.4.6 => 2.11.0
  npmGlobalPackages:
    gatsby-cli: 2.18.0
@knnyczr knnyczr added the type: bug An issue or pull request relating to a bug in Gatsby label Jan 24, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 24, 2021
@LekoArts LekoArts added topic: source-contentful Related to Gatsby's integration with Contentful type: upstream Issues outside of Gatsby's control, caused by dependencies and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby labels Jan 25, 2021
@LekoArts
Copy link
Contributor

Thank you for opening this!

You should remove the .babelrc file as it changes the behavior how Gatsby compiles it code: https://github.com/knnyczr/vantrannguyen/blob/master/.babelrc

Please open an issue at https://github.com/contentful-userland/gatsby-contentful-starter to see why it was added in the first place.

We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby!

@knnyczr
Copy link
Author

knnyczr commented Jan 25, 2021

Thank you @LekoArts. It's compiling and deploying now. Appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-contentful Related to Gatsby's integration with Contentful type: upstream Issues outside of Gatsby's control, caused by dependencies
Projects
None yet
Development

No branches or pull requests

2 participants