找不到模块无法解析“重新基准”

时间:2019-09-06 21:54:39

标签: rebase

我正在从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;

1 个答案:

答案 0 :(得分:0)

安装 re-base 并将其与依赖项对等 试试这个命令我的问题解决了。

npm install re-base --legacy-peer-deps