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.
相關文章
相關標籤/搜索