react native 在 init 时报“SyntaxError: Unexpected token import”错

react native 在用“react-native init demo”init项目时,报如下错误: import type {CommandT} from './commands'; SyntaxError: Unexpected token import     解决方法: 在init时指定init的版本,例如react-native init MyApp --version 0.44.
相关文章
相关标签/搜索