当我在电子领域中使用领域时。
安装:
npm install --save realm
运行:
npm run start
找到错误:
ERROR Failed to compile with 1 errors4:50:43 PM
This dependency was not found:
* react-native in ./node_modules/realm/lib/browser/index.js
To install it, you can run: npm install --save react-native
我不想在电子中使用本征反应,那我该怎么办?
我尝试重建
"scripts": {
"rebuild": "electron-rebuild -f -w realm",
...
}
但有错误。