gpt4 book ai didi

babeljs - 升级的 Gatsby 和现在出现 BABEL 错误 - 包导出未定义 '.' 子路径

转载 作者:行者123 更新时间:2023-12-03 19:19:05 25 4
gpt4 key购买 nike

ERROR #98123 WEBPACK

[BABEL] .cache\develop-static-entry.js: Package exports for '\node_modules@babel\helper-compilation-targets' do not define a '.' subpath



尝试升级 NPM 并清除 NPM 缓存,但这不起作用。

gatsby升级之前,没有这个问题

Gatsby 信息
  System:
OS: Windows 10 10.0.18362
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 13.0.1 - C:\Program Files\nodejs\node.EXE
npm: 6.13.6 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
npmPackages:
gatsby: ^2.18.21 => 2.18.21
gatsby-cli: ^2.8.26 => 2.8.26
gatsby-image: ^2.2.38 => 2.2.38
gatsby-plugin-canonical-urls: ^2.1.19 => 2.1.19
gatsby-plugin-config: ^1.0.7 => 1.0.7
gatsby-plugin-google-analytics: ^2.1.32 => 2.1.32
gatsby-plugin-gtag: ^1.0.12 => 1.0.12
gatsby-plugin-metomic: 0.0.2 => 0.0.2
gatsby-plugin-playground: ^1.0.6 => 1.0.6
gatsby-plugin-react-head: ^1.1.0 => 1.1.0
gatsby-plugin-s3: ^0.2.5 => 0.2.5
gatsby-plugin-sass: ^2.1.27 => 2.1.27
gatsby-plugin-sharp: ^2.3.13 => 2.3.13
gatsby-plugin-sitemap: ^2.2.25 => 2.2.25
gatsby-remark-images: ^3.1.42 => 3.1.42
gatsby-remark-relative-images: ^0.2.3 => 0.2.3
gatsby-source-filesystem: ^2.1.46 => 2.1.46
gatsby-transformer-remark: ^2.6.48 => 2.6.48
gatsby-transformer-sharp: ^2.3.12 => 2.3.12

最佳答案

只需将 node 升级到 v12.14.1 或更高版本,问题就会得到解决。

关于babeljs - 升级的 Gatsby 和现在出现 BABEL 错误 - 包导出未定义 '.' 子路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59714339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com