Gatsby: Erro ao desenvolver / construir; "gatsby-plugin-mdx" gerou um erro ... [BABEL] desconhecido: Opção inválida

Criado em 9 abr. 2020  ·  1Comentário  ·  Fonte: gatsbyjs/gatsby

Estou tendo um erro ao construir ou desenvolver este repo individualmente

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

Mas quando eu o desenvolvo ou crio dentro de minha configuração workspace , ele ocorre sem problemas

Eu acho que é algo com as dependências?

O erro

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
question or discussion

Comentários muito úteis

Resolvido atualizando (no tema central) gatsby-plugin-mdx de 1.1.4 para 1.1.6

>Todos os comentários

Resolvido atualizando (no tema central) gatsby-plugin-mdx de 1.1.4 para 1.1.6

Esta página foi útil?
0 / 5 - 0 avaliações

Questões relacionadas

signalwerk picture signalwerk  ·  3Comentários

mikestopcontinues picture mikestopcontinues  ·  3Comentários

benstr picture benstr  ·  3Comentários

Oppenheimer1 picture Oppenheimer1  ·  3Comentários

hobochild picture hobochild  ·  3Comentários