2017.08.20

new

  • React Native Bug: react-native run-android error: bundling failed
Bundling `index.android.js`  [development, non-minified, hmr disabled]  ░░░░░░░░░░░░░
error: bundling failed: "TransformError: path\to\index.android.js: Unex
pected token ) (While processing preset: "path\path\project\node_modules\babel-preset-react-native index.js\")"

solution https://github.com/facebook/react-native/issues/15545

for yarn used following Commands

yarn remove babel-preset-react-native yarn add babel-preset-react-native@2.1.0

for npm used following Commands

npm uninstall babel-preset-react-native npm install babel-preset-react-native@2.1.0


- Android Emulator Start Up Bug: `emulator -avd a6` ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/libCould not launch '../emulator/qemu/darwin-x86_64/qemu-system-x86_64': No such file or directory

solution :add script to ~/.zshrc file

2017.08.20 add scripts to fix android emulator's problem (start_up)

function emulator { ( cd "$(dirname "$(whence -p emulator)")" && ./emulator "$@"; ) }


- redux@3.60 开始在模块中自己定义声明文件,不需要单独下载@types包。

// tsconfig.json 中配置即可 moduleResolution: 'node ' ```

results matching ""

    No results matching ""