0
I am developing an app in React On. However when generating buildo I get message:
Loading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper
Error message:
Looking for JS files in
C: Users sulwork01 Documents React-Native Rn-WhoisthispokemonLoading dependency Graph, done. error: bundling failed: Referenceerror: Unknown helper objectSpread2 at loadHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel helpers lib index.js:238:27) At object.getDependencies (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel helpers lib index.js:279:21) At file.addHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel core lib Transformation file file.js:204:33) At pluginpass.addHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel core lib Transformation plugin-pass.js:31:22) At pluginpass.Objectexpression (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel plugin-Proposal-Object-Rest-spread lib index.js:379:25) at newFn (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel Traverse lib Visitors.js:193:21) At Nodepath. _call (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel Traverse lib path context.js:53:20) at Nodepath.call (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel Traverse lib path context.js:40:17) At Nodepath.visit (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules@Babel Traverse lib path context.js:88:12) DELTA [android, dev] .../index.js 56.4% (389/518):: ffff:127.0.0.1 - - [17/Jul/2019:00:07:27 +0000] "GET /index.delta? Platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1" DELTA [android, dev] .../index.js 56.4% (389/518), failed.
Another error message:
The Development server returned Error code: 500
URL: http://10.0.2.2:8081/index.delta? Platform=android&dev=true&minify=false
Body: {"type":"Transformerror","lineNumber":0,"errors":[{"Description":"node_modules React-Native Libraries Components Activityindicator Activityindicator.js: Unknown helper objectSpread2","lineNumber":0}],"name":"Syntaxerror","message":"node_modules React-Native Libraries Components Activityindicator Activityindicator.js: Unknown helper objectSpread2","stack":"Referenceerror: Unknown helper objectSpread2 n at loadHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel helpers lib index.js:238:27) n At Object.getDependencies (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel helpers lib index.js:279:21) n At File.addHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel core lib Transformation file file.js:204:33) n At Pluginpass.addHelper (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel core lib Transformation plugin-pass.js:31:22) n At Pluginpass.Objectexpression (C: users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel plugin-Proposal-Object-Rest-spread lib index.js:379:25) n newat Fn (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel Traverse lib Visitors.js:193:21) n At Nodepath. _call (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel Traverse lib path context.js:53:20) n at Nodepath.call (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel Traverse lib path context.js:40:17) n at Nodepath.visit (C: Users sulwork01 Documents React-Native Rn-Whoisthispokemon node_modules @Babel Traverse lib path context.js:88:12)" } processBundleResult Bundledownloader.java:296 access$200 Bundledownloader.java:37 onResponse Bundledownloader.java:174 run Realcall.java:206 run Namedrunnable.java:32 runWorker Threadpoolexecutor.java:1162 run Threadpoolexecutor.java:636 run Thread.java:764
Version of React-Native React-Native-cli: 2.0.1 React-Native: 0.59.9