我正在从re-base
导入Rebase,但是抛出错误:
找不到模块无法在'/ home / salisu / Desktop / React Projects / catch-of-day / src'“
中解析're-base'
代码:
import Rebase from 're-base';
const base = Rebase.createClass({
apiKey: "AIzaSyDciFjReP_AmFD31eSPnBhRbYkaJ7L2Mqc",
authDomain: "catch-of-the-day-salisu-a6502.firebaseapp.com",
databaseURL: "https://catch-of-the-day-salisu-a6502.firebaseio.com"
});
export default base;
答案 0 :(得分:0)
安装 re-base 并将其与依赖项对等 试试这个命令我的问题解决了。
npm install re-base --legacy-peer-deps