Heruko Deployment无法读取未定义的属性位置?

时间:2018-10-14 14:32:33

标签: javascript reactjs

我正在申请React。我已经使用了称为unlayer editor的第三方库。 https://unlayer.com/ 它在开发模式下可以完美运行,但是当我将其推到heroku时,会出现以下错误

editor.js:formatted:9428 TypeError: Cannot read property 'location' of undefined
    at Function.mapToProps (editor.js:formatted:43314)
    at r (editor.js:formatted:12784)
    at Function.r.mapToProps (editor.js:formatted:12790)
    at r (editor.js:formatted:12784)
    at editor.js:formatted:13038
    at Object.run (editor.js:formatted:11949)
    at o.initSelector (editor.js:formatted:11961)
    at new o (editor.js:formatted:11888)
    at constructClassInstance (editor.js:formatted:8912)
    at beginWork (editor.js:formatted:9021)

库或运行它的环境是否有问题?

0 个答案:

没有答案