umijs / umi-example-ssr Goto Github PK
View Code? Open in Web Editor NEWssr example for umi.
ssr example for umi.
Error: ".umirc.ts" 中配置的 "ssr" 并非约定的配置项
package.json文件
"dependencies": {
"dva": "^2.6.0-beta.4",
"antd": "^3.19.2",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"devDependencies": {
"@types/jest": "^23.3.12",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"@types/react-test-renderer": "^16.0.3",
"babel-eslint": "^9.0.0",
"eslint": "^5.4.0",
"eslint-config-umi": "^1.4.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.11.1",
"husky": "^0.14.3",
"lint-staged": "^7.2.2",
"react-test-renderer": "^16.7.0",
"tslint": "^5.12.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.6.0",
"umi": "^2.7.3",
"umi-plugin-react": "^1.8.0",
"umi-types": "^0.2.0"
},
ssr动态路由不支持, 报错 ``you should not use exportStatic with dynamic route: ${route.path}`
我给这个打包后得dist文件通过nginx代理部署到服务器上后,访问url还是没有通过server处理的html啊,能给个部署的例子吗。
打包出来,访问http://127.0.0.1:7001,报错
报错如下
Uncaught SyntaxError: Unexpected token <
本地跑点击链接可以跳转 users.html count.html, 直接刷新 users.html 或users not found
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.