-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(examples): 静态资源加载错误 #11980
fix(examples): 静态资源加载错误 #11980
Conversation
mac m1 info - dumi v2.2.16 info - Umi v4.0.89 如果先执行umi.server.js 会导致页面样式错误, 控制台提示: ``` Uncaught SyntaxError: Unexpected token '<' ```
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
因为时间太久,这个 如有兴趣,可以重写一下这个 example ,把 vercel 的部分去掉,换成本地 express mock 的 todo api 服务,删除 |
简单改了一版, 不确定是否符合你的意思
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11980 +/- ##
=======================================
Coverage 28.77% 28.77%
=======================================
Files 489 489
Lines 14962 14962
Branches 3554 3554
=======================================
Hits 4305 4305
Misses 9891 9891
Partials 766 766 ☔ View full report in Codecov by Sentry. |
真感觉这里面以前写的历史代码一塌糊涂啊,我先简单改了改,真要写一个优雅的 todo list ,react-query 、loading 、组件库这些都不能少,先简单能用就行吧,感谢你的 PR 。 |
mac m1 本地执行
info - dumi v2.2.16
info - Umi v4.0.89
"express": "^4.18.2"
node v18.10.0
如果先执行umi.server.js 会导致页面样式错误, 控制台提示:
Uncaught SyntaxError: Unexpected token '<'