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
Solved by updating (in the core theme) gatsby-plugin-mdx
from 1.1.4
to 1.1.6
Most helpful comment
Solved by updating (in the core theme)
gatsby-plugin-mdx
from1.1.4
to1.1.6