Facing error (0 , (_wordwrap || _load_wordwrap(…)).default)(…)(…).trimStart is not a function on expo init

  • A+
Category:Languages

I am trying to create react native application with Expo. As per react native official documentation, I have installed Node 8+ (v8.12.0) & expo-cli on my windows system and then run command expo init AwesomeProject. But its giving error as

(0 , (_wordwrap || _load_wordwrap(...)).default)(...)(...).trimStart is not a function Set EXPO_DEBUG=true in your env to view the stack trace. 

When I enable expo debug, its giving

TypeError: (0 , (_wordwrap || _load_wordwrap(...)).default)(...)(...).trimStart is not a function     at C:/expo-cli@2.11.6/src/commands/init.js:105:19     at Array.map (<anonymous>)     at _callee$ (C:/expo-cli@2.11.6/src/commands/init.js:95:37)     at tryCatch (C:/Users/shubhamt1/AppData/Roaming/npm/node_modules/expo-cli/no de_modules/regenerator-runtime/runtime.js:62:40)     at Generator.invoke [as _invoke] (C:/Users/shubhamt1/AppData/Roaming/npm/nod e_modules/expo-cli/node_modules/regenerator-runtime/runtime.js:296:22)     at Generator.prototype.(anonymous function) [as next] (C:/Users/shubhamt1/Ap pData/Roaming/npm/node_modules/expo-cli/node_modules/regenerator-runtime/runtime .js:114:21)     at step (C:/Users/shubhamt1/AppData/Roaming/npm/node_modules/expo-cli/node_m odules/babel-runtime/helpers/asyncToGenerator.js:17:30)     at C:/Users/shubhamt1/AppData/Roaming/npm/node_modules/expo-cli/node_modules /babel-runtime/helpers/asyncToGenerator.js:35:14     at new Promise (<anonymous>)     at new F (C:/Users/shubhamt1/AppData/Roaming/npm/node_modules/expo-cli/node_ modules/core-js/library/modules/_export.js:36:28) 

Please help on this. I am missing something ?

 


use lower version of expo,i think new version is still in beta.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: