lisong / code-push-web Goto Github PK
View Code? Open in Web Editor NEWcode-push-server web客户端
License: MIT License
code-push-server web客户端
License: MIT License
执行npm run build命令,会卡在Starting 'bundle'...不动。整个虚拟主机都卡死的感觉,什么情况?
设置环境变量不生效
export const common = {
api: {
URL: process.env.SERVER_URL || http://update.aa.com
, // production code-push-server address
devURL: process.env.SERVER_URL || http://update.aa.com
, // development code-push-server address
},
};
process.env能读到,但是网页上不生效
Rest URL不能后期配置
用npm安装的server不能跨域
build的时候满屏的warning,废弃用法
有时候某名其妙的错误
多年没有更新代码了
有问题也不回复
build成功了,但是打开http://localhost:3000
后页面报错;
环境:
[email protected]
[email protected]
macOS High [email protected]
能帮忙看下吗,谢谢
搭建了 web 的服务 3001 端口进入可以看到主页 但是导航栏所有按钮点击都没有效果
发现 code push server 点击登录按钮才能跳转到对应 web 页面上 应该是前端的问题
然后在注册的时候 发现填完邮箱 下一步无法点击 。。
TypeError: Cannot read property 'length' of null
getShortTypeString
webpack:///~/redux-devtools-inspector/lib/tabs/getItemString.js:54
开始好好的,突然就出来个这,电脑上浏览器都不行,手机可以打开
点击注册按钮输入邮箱无反应,12302端口为code-push-server端口,12303为code-push-web端口
//真实ip隐藏掉了
Console显示:
Fetch API cannot load http://我的ip:12302/users/[email protected]. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://我的ip:12303' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
网上查询到关闭网络安全的命令(Windows):
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
关闭后可以正常访问。
还请大神解答,谢谢!
root@iZ23vlpts7xZ build]# node ./server.js
module.js:540
throw err;
^
Error: Cannot find module 'source-map-support'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/opt/codepush/build/server.js:1:63)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
[root@iZ23vlpts7xZ build]# ule.require (module.js:587:17)
-bash: 未预期的符号 module.js:587:17' 附近有语法错误 [root@iZ23vlpts7xZ build]# at require (internal/module.js:11:18) -bash: 未预期的符号
(' 附近有语法错误
[root@iZ23vlpts7xZ build]# at Object. (/opt/codepush/build/server.js:1:63)
-bash: 未预期的符号 (' 附近有语法错误 [root@iZ23vlpts7xZ build]# at Module._compile (module.js:643:30) -bash: 未预期的符号
(' 附近有语法错误
我编译之后搭建起来,发现首页无法正确显示链接,包括 登录、注册、应用等。我通过手动修改浏览器链接可以访问登录页(后面手动+ /login
),但是点击登录无响应。这个是还未开发完整吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.