reactjs - Babel 加载器问题 "You may need an additional loader to handle the result of these loaders" `/@react-spring/web/dist/`

标签 reactjs babeljs yarnpkg react-spring

我目前正在为测试网而不是实时应用程序 fork uniswap

我已经绑定(bind)了测试网并部署了合约。在执行此操作之前,我能够将其放入 Docker 容器中。

完成此操作后,我正在运行

yarn 升级

NODE_OPTIONS=--openssl-legacy-provider

yarn 添加沉浸器jotai-immer

然后

yarn 开始

这之前在本地启动了应用程序,现在我收到此错误

Failed to compile.

./node_modules/@react-spring/web/dist/esm/index.js 113:11
Module parse failed: Unexpected token (113:11)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|       this.transforms = i;
|     }
>     _value = null;
|     get() {
|       return this._value || (this._value = this._get());

我以前从未见过它,任何人都可以提供修复或查明问题吗?

我目前正在为测试网而不是实时应用程序 fork uniswap

我已经绑定(bind)了测试网并部署了合约。在执行此操作之前,我能够将其放入 Docker 容器中。

完成此操作后,我正在运行

yarn 升级

NODE_OPTIONS=--openssl-legacy-provider

yarn 添加沉浸器jotai-immer

然后

yarn 开始

这之前在本地启动了应用程序,现在我收到此错误

Failed to compile.

./node_modules/@react-spring/web/dist/esm/index.js 113:11
Module parse failed: Unexpected token (113:11)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|       this.transforms = i;
|     }
>     _value = null;
|     get() {
|       return this._value || (this._value = this._get());

我以前从未见过它,任何人都可以提供修复或查明问题吗?

最佳答案

将 @react-spring/web 更新到最新版本后,我遇到了同样的问题。我将版本回滚到“9.6.1”。现在可以了。

关于reactjs - Babel 加载器问题 "You may need an additional loader to handle the result of these loaders" `/@react-spring/web/dist/`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75604399/

相关文章:

javascript - 如何防止第二次输入相同的字符

python - React : NoReverseMatch: Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' 不是有效的 View 函数或模式名称

reactjs - React-redux 中 Action 和 Action 类型的含义是什么?

javascript - ReactJS 重定向

javascript - 如何阻止 babel 将 'this' 转换为 'undefined' (并插入 "use strict")

reactjs - 使用Docker时如何隐藏React启动欢迎消息

ios - 我无法使用 iOS 模拟器运行任何 React 应用程序

react-native APK 崩溃并出现 "Unknown"错误

javascript - jest.mock 不模拟模块

node.js - 我可以在 Windows 中使用命令行升级 Node.js 吗?