gatsby-mdx-netlify-cms-starter icon indicating copy to clipboard operation
gatsby-mdx-netlify-cms-starter copied to clipboard

Webpack error on fresh start

Open Dizotoff opened this issue 4 years ago • 2 comments

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 avatar May 31 '20 17:05 Dizotoff

Hey @Dizotoff, sorry for the late response. Try the fix for issue #7 in this PR: https://github.com/renvrant/gatsby-mdx-netlify-cms-starter/pull/8

renvrant avatar Jun 21 '20 17:06 renvrant

Thanks for your reply @renvrant,

This has fixed it for me, much appreciated.

Dizotoff avatar Jul 07 '20 12:07 Dizotoff