小编Cpa*_*llo的帖子

错误意外令牌 = 从 RN 0.64.2 升级到 0.65.1 后

我刚刚按照升级助手从 64.1 升级到 65.1。

但我开始收到此错误并且无法修复它。

我已将 node/npm 升级到 14.17 并完成了我能想到的所有其他操作。有人可以帮忙吗?

该错误发生在构建过程中。

SyntaxError: Unexpected token =

22:55:32 > Task :react-native-community_masked-view:compileReleaseLibraryResources
22:55:32
22:55:32 > Task :app:bundleReleaseJsAndAssets FAILED
22:55:32 
22:55:32 /node_modules/metro/src/Server.js:350
22:55:32 processRequest = (req, res, next) => {
22:55:32 ^
22:55:32
22:55:32 SyntaxError: Unexpected token =
22:55:32 at new Script (vm.js:79:7)
22:55:32 at createScript (vm.js:251:10)
22:55:32 at Object.runInThisContext (vm.js:303:10)
22:55:32 at Module._compile (internal/modules/cjs/loader.js:656:28)
22:55:32 at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
22:55:32 at Module.load (internal/modules/cjs/loader.js:598:32)
22:55:32 at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
22:55:32 at Function.Module._load (internal/modules/cjs/loader.js:529:3)
22:55:32 at Module.require …
Run Code Online (Sandbox Code Playgroud)

javascript android ios reactjs react-native

1
推荐指数
1
解决办法
2781
查看次数

标签 统计

android ×1

ios ×1

javascript ×1

react-native ×1

reactjs ×1