Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

O código faz o build com sucesso mas obtenho um erro 500 quando a App abre no emulador de android

The development server returned response 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":"/var/www/html/reactNative/InstaluraMobile/index.js: Cannot read property 'throwIfClosureRequired' of undefined (While processing preset: \"/var/www/html/reactNative/InstaluraMobile/node_modules/babel-preset-react-native/index.js\")","lineNumber":0}],"name":"SyntaxError","message":"/var/www/html/reactNative/InstaluraMobile/index.js: Cannot read property 'throwIfClosureRequired' of undefined (While processing preset: \"/var/www/html/reactNative/InstaluraMobile/node_modules/babel-preset-react-native/index.js\")","stack":"TypeError: Cannot read property 'throwIfClosureRequired' of undefined (While processing preset: \"/var/www/html/reactNative/InstaluraMobile/node_modules/babel-preset-react-native/index.js\")\n    at _default (/var/www/html/reactNative/InstaluraMobile/node_modules/babel-preset-react-native/node_modules/@babel/plugin-transform-block-scoping/lib/index.js:19:36)\n    at Function.memoisePluginContainer (/var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)\n    at Function.normalisePlugin (/var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)\n    at /var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30\n    at Array.map (<anonymous>)\n    at Function.normalisePlugins (/var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)\n    at OptionManager.mergeOptions (/var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)\n    at /var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14\n    at /var/www/html/reactNative/InstaluraMobile/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22"}
processBundleResult
    BundleDownloader.java:266
access$200
    BundleDownloader.java:35
onResponse
    BundleDownloader.java:153
execute
    RealCall.java:135
run
    NamedRunnable.java:32
runWorker
    ThreadPoolExecutor.java:1162
run
    ThreadPoolExecutor.java:636
run
    Thread.java:764
3 respostas

Alguém?

solução!

Após recriar o projeto o mesmo funcionou