Gatsby: 开发/建造时出错; “ gatsby-plugin-mdx”引发错误... [BABEL]未知:无效的选项

创建于 2020-04-09  ·  1评论  ·  资料来源: gatsbyjs/gatsby

分别构建或开发此存储库时出现错误

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

但是,当我在workspace设置中开发或构建它时,它没有任何问题

我猜这与依赖有关吗?

错误

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

最有用的评论

通过在核心主题中将gatsby-plugin-mdx1.1.41.1.6

>所有评论

通过在核心主题中将gatsby-plugin-mdx1.1.41.1.6

此页面是否有帮助?
0 / 5 - 0 等级