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

Error when developing/building; "gatsby-plugin-mdx" threw an error ... [BABEL] unknown: Invalid Option #22982

Closed
kuworking opened this issue Apr 9, 2020 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@kuworking
Copy link

kuworking commented Apr 9, 2020

I'm having an error when building or developing this repo individually

git clone https://github.com/kuworking/kuworking-theme-one.git
yarn
gatsby build

But when I develop or build it within my workspace setup, it goes without problems

I guess it's something with the dependencies?

The error

success createSchemaCustomization - 0.005s

 ERROR #11321  PLUGIN

"gatsby-plugin-mdx" threw an error while running the onCreateNode lifecycle:

[BABEL] unknown: Invalid Option: The 'modules' option must be one of
 - 'false' to indicate no module processing
 - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs' - 'auto' (default) which will automatically select 'false' if the current
   process is known to support ES module syntax, or "commonjs" otherwise
 (While processing: "base$1")



  Error: Invariant Violation: [BABEL] unknown: Invalid Option: The 'modules' option must be one of     
   - 'false' to indicate no module processing
   - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs' - 'auto' (default) which will automat  ically select 'false' if the current
     process is known to support ES module syntax, or "commonjs" otherwise
   (While processing: "base$1")

  - invariant.js:40 invariant
    [kuworking-theme-one]/[invariant]/invariant.js:40:15

  - normalize-options.js:117 validateModulesOption
    [kuworking-theme-one]/[@babel]/preset-env/lib/normalize-options.js:117:26

  - normalize-options.js:181 normalizeOptions
    [kuworking-theme-one]/[@babel]/preset-env/lib/normalize-options.js:181:14

  - index.js:227 _default
    [kuworking-theme-one]/[@babel]/preset-env/lib/index.js:227:37

  - index.js:19 
    [kuworking-theme-one]/[@babel]/helper-plugin-utils/lib/index.js:19:12

  - full.js:199 
    [kuworking-theme-one]/[@babel]/core/lib/config/full.js:199:14

  - Generator.next

  - async.js:26 Function.<anonymous>
    [kuworking-theme-one]/[@babel]/core/lib/gensync-utils/async.js:26:3

  - Generator.next

  - index.js:244 evaluateSync
    [kuworking-theme-one]/[gensync]/index.js:244:28

  - index.js:84 Function.sync
    [kuworking-theme-one]/[gensync]/index.js:84:14

  - async.js:66 sync
    [kuworking-theme-one]/[@babel]/core/lib/gensync-utils/async.js:66:25

  - index.js:177 sync
    [kuworking-theme-one]/[gensync]/index.js:177:19

  - index.js:204 onFirstPause
    [kuworking-theme-one]/[gensync]/index.js:204:19

  - Generator.next

  - caching.js:68 cachedFunction
    [kuworking-theme-one]/[@babel]/core/lib/config/caching.js:68:46

  - cachedFunction.next

  - full.js:292 loadPresetDescriptor
    [kuworking-theme-one]/[@babel]/core/lib/config/full.js:292:44

  - loadPresetDescriptor.next

  - full.js:107 recurseDescriptors
    [kuworking-theme-one]/[@babel]/core/lib/config/full.js:107:30

  - recurseDescriptors.next

  - full.js:142 loadFullConfig
    [kuworking-theme-one]/[@babel]/core/lib/config/full.js:142:6


not finished source and transform nodes - 1.007s
@kuworking kuworking added the type: question or discussion Issue discussing or asking a question about Gatsby label Apr 9, 2020
@kuworking kuworking changed the title Error when building; "gatsby-plugin-mdx" threw an error ... [BABEL] unknown: Invalid Option Error when developing/building; "gatsby-plugin-mdx" threw an error ... [BABEL] unknown: Invalid Option Apr 9, 2020
@kuworking
Copy link
Author

Solved by updating (in the core theme) gatsby-plugin-mdx from 1.1.4 to 1.1.6

siriwatknp added a commit to siriwatknp/mui-treasury that referenced this issue May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant