随笔分类 - frontend平台
摘要:前言:这个问题卡住好久。全是红色波浪线,代码没法看。 第一步: "compilerOptions": { "moduleResolution": "node", "jsx": "react"}, 解决办法:https://stackoverflow.com/questions/40899868/ty
阅读全文
摘要:前言:umi+antd pro工程,创建后,使用起来的时候毛病多。 2,在webstorm编辑器报错 TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import
阅读全文
摘要:前言:学习typescript时,总要去查一些资料,所以收集整理到此,方便以后学习。 https://ts.xcatliu.com/advanced/generics.html
阅读全文
摘要:前言:新建一个前端工程,有好多知识点需要学习。查资料的知识点如下 3,Pro-Layout如何添加 (1)配置路由菜单 https://juejin.cn/post/7074565988284366879 (2)页面布局 (3) 2,组件库@ant-design/pro-components学习 i
阅读全文
摘要:前言:在朋友的建议下,试试这种方案。感觉比较靠谱。 查看demo:https://github.com/umijs/umi/tree/master/examples/ant-design-pro 使用npm install报错 npm ERR! code EUNSUPPORTEDPROTOCOLnp
阅读全文