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

Webpack error on fresh start #10

Open
Dizotoff opened this issue May 31, 2020 · 2 comments
Open

Webpack error on fresh start #10

Dizotoff opened this issue May 31, 2020 · 2 comments

Comments

@Dizotoff
Copy link

Dizotoff commented May 31, 2020

I receive a following error when clone the repo and try to run gatsby develop both on my local environment and codesandbox

ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Can't resolve 'fs' in '/sandbox/node_modules/@mdx-js/mdx/node_modules/@babel/core/lib/transformation'

My environment:


System:
    OS: macOS 10.15.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.16.1 - /usr/local/bin/node
    Yarn: 1.16.0 - ~/.yarn/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 83.0.4103.61
    Firefox: 76.0.1
    Safari: 13.1
  npmPackages:
    gatsby: ^2.13.14 => 2.22.12
    gatsby-image: ^2.2.5 => 2.4.5
    gatsby-plugin-manifest: ^2.0.19 => 2.4.9
    gatsby-plugin-mdx: ^1.0.56 => 1.2.13
    gatsby-plugin-netlify-cms: ^4.1.6 => 4.3.3
    gatsby-plugin-offline: ^2.2.2 => 2.2.10
    gatsby-plugin-react-helmet: ^3.1.1 => 3.3.2
    gatsby-plugin-sharp: ^2.0.35 => 2.6.9
    gatsby-source-filesystem: ^2.1.4 => 2.3.8
    gatsby-transformer-sharp: ^2.1.14 => 2.5.3
  npmGlobalPackages:
    gatsby-cli: 2.8.3
@Dizotoff Dizotoff changed the title Webpack error on fresh build Webpack error on fresh develop Jun 3, 2020
@Dizotoff Dizotoff changed the title Webpack error on fresh develop Webpack error on fresh start Jun 3, 2020
@renvrant
Copy link
Owner

Hey @Dizotoff, sorry for the late response. Try the fix for issue #7 in this PR: #8

@Dizotoff
Copy link
Author

Dizotoff commented Jul 7, 2020

Thanks for your reply @renvrant,

This has fixed it for me, much appreciated.

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

No branches or pull requests

2 participants