GrappleGQL / gatsby-source-wagtail

Plugin for sourcing Gatsby data from Wagtail CMS
17 stars 12 forks source link

Gatsby ^2.24.67 throws `Unknown option: .rootDir.` #28

Closed tbrlpld closed 3 years ago

tbrlpld commented 3 years ago

As mentioned in https://github.com/GrappleGQL/gatsby-source-wagtail/pull/25#issuecomment-704582511, using the latest Gatsby versions (I have used ^2.24.67) breaks the gatsby build and gatsby develop commands.

This is the error message I get:

success run page queries - 0.021s - 6/6 291.58/s

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .rootDir. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/polyfill-entry.js

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .rootDir. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/app.js

failed Building development bundle - 0.947s

This error does not occur with "gatsby": "2.24.51". So setting the version fixed helps as a workaround, but this is of course no long term solution. I think this Gatsby issue is where I got the hint.

Here is my system setup:

$ gatsby info

  System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.3.1 - ~/.nvm/versions/node/v12.3.1/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.7 - ~/.nvm/versions/node/v12.3.1/bin/npm
  Languages:
    Python: 3.8.2 - /Users/tibor/.pyenv/shims/python
  Browsers:
    Chrome: 85.0.4183.121
    Firefox: 81.0
    Safari: 14.0
  npmPackages:
    gatsby: ^2.24.67 => 2.24.67
    gatsby-image: ^2.4.20 => 2.4.20
    gatsby-plugin-manifest: ^2.4.33 => 2.4.33
    gatsby-plugin-offline: ^3.2.30 => 3.2.30
    gatsby-plugin-react-helmet: ^3.3.12 => 3.3.12
    gatsby-plugin-sharp: ^2.6.38 => 2.6.38
    gatsby-source-filesystem: ^2.3.32 => 2.3.32
    gatsby-source-wagtail: git+https://github.com/GrappleGQL/gatsby-source-wagtail.git => 0.5.1
    gatsby-transformer-sharp: ^2.5.16 => 2.5.16
  npmGlobalPackages:
    gatsby: 2.24.67
fabienheureux commented 3 years ago

I think you can close this one @tbrlpld ? 😁

tbrlpld commented 3 years ago

Thanks for the fix @fabienheureux 👌