【发布时间】:2022-06-27 14:41:07
【问题描述】:
升级到 SDK 45 后,expo start 系统性地失败。
iOS Bundling failed 4230ms
node_modules/expo-keep-awake/build/index.js: function (path) {
return fn.call(state, path, state);
} could not be cloned.
Error: function (path) {
return fn.call(state, path, state);
} could not be cloned.
at Object.serialize (node:v8:333:7)
at _default (/home/prince/Documents/HandyTradie/fromBucket/htMobile/node_modules/@babel/core/lib/transformation/util/clone-deep.js:22:34)
at normalizeFile (/home/prince/Documents/HandyTradie/fromBucket/htMobile/node_modules/@babel/core/lib/transformation/normalize-file.js:84:36)
at normalizeFile.next ()
at run (/home/prince/Documents/HandyTradie/fromBucket/htMobile/node_modules/@babel/core/lib/transformation/index.js:31:50)
at run.next ()
at /home/prince/Documents/HandyTradie/fromBucket/htMobile/node_modules/@babel/core/lib/transform-ast.js:26:41
at Generator.next ()
at evaluateSync (/home/prince/Documents/HandyTradie/fromBucket/htMobile/node_modules/@babel/core/node_modules/gensync/index.js:251:28)
请注意,我没有直接使用 expo-keep-awake,它没有链接在我的 package.json 中