我如何在没有反应本征的情况下在电子中使用领域

时间:2019-06-10 08:59:43

标签: realm electron

当我在电子领域中使用领域时。

安装:

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",
    ...
}

但有错误。

0 个答案:

没有答案