apiko-dev / Perfi

Personal finance assistance with ReactNative
https://apiko.com/
Apache License 2.0
362 stars 184 forks source link

Babel error #71

Closed standerpm closed 5 years ago

standerpm commented 5 years ago

Building iOS bundle ERROR 19:15 500 - "{\"type\":\"TransformError\",\"lineNumber\":0,\"errors\":[{\"description\":\"node_modules\\react-native-scripts\\build\\bin\\crna-entry.js: Plugin/Preset files are not allowed to export objects, only functions. In D:\\Desktop\\BA\\node_modules\\babel-preset-expo\\index.js\",\"lineNumber\":0}],\"name\":\"SyntaxError\",\"message\":\"node_modules\\react-native-scripts\\build\\bin\\crna-entry.js: Plugin/Preset files are not allowed to export objects, only functions. In D:\\Desktop\\BA\\node_modules\\babel-preset-expo\\index.js\",\"stack\":\"Error: Plugin/Preset files are not allowed to export objects, only functions. In D:\\Desktop\\BA\\node_modules\\babel-preset-expo\\index.js\n at createDescriptor (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-descriptors.js:178:11)\n at items.map (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-descriptors.js:109:50)\n at Array.map ()\n at createDescriptors (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-descriptors.js:109:29)\n at createPresetDescriptors (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-descriptors.js:101:10)\n at presets (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-descriptors.js:47:19)\n at mergeChainOpts (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-chain.js:320:26)\n at D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-chain.js:283:7\n at mergeExtendsChain (D:\\Desktop\\BA\\node_modules\\@babel\\core\\lib\\config\\config-chain.js:299:21)\"}" ERROR 19:15 node_modules\react-native-scripts\build\bin\crna-entry.js: Plugin/Preset files are not allowed to export objects, only functions. In D:\Desktop\BA\node_modules\babel-preset-expo\index.js ERROR 19:15 Building JavaScript bundle: error

terrysahaidak commented 5 years ago

Hi @standerpm, could you please post steps you've followed?

gurjmatharu commented 5 years ago

+1

This project is awesome 👍

This happens on a clean install.

  1. Git Clone
  2. npm start
  3. Navigate to expo url on iOS
terrysahaidak commented 5 years ago

Seems like our dependencies are outdated, I will update them and write back