-
Notifications
You must be signed in to change notification settings - Fork 148
错误 #38
Comments
在 ./node_modules/react-qiniu/index.js 第33行,增加一行如下代码
|
Error: Failed to lookup view "../dist/index.ejs" in views directory "/root/ziiyan/views" 还是跑不起来 端口改成80 地址改成域名 |
错误上看,是没有 ../dist/index.ejs 文件。 |
/node_modules/react-qiniu/index.js:33
if (window.location.protocol === 'https:') {
^
ReferenceError: window is not defined
at Function.getDefaultProps (/root/ziiyan/node_modules/react-qiniu/index.js:33:9)
at Object.createClass (/root/ziiyan/node_modules/react/lib/ReactClass.js:681:46)
at Object. (/root/ziiyan/node_modules/react-qiniu/index.js:13:24)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Object.require.extensions.(anonymous function) [as .js] (/root/ziiyan/node_modules/babel-register/lib/node.js:152:7)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/root/ziiyan/src/components/qiniu-upload-image/index.js:3:1)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at loader (/root/ziiyan/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/root/ziiyan/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:589:32)
The text was updated successfully, but these errors were encountered: