Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

Angular ng-zorro-antd 升级10后样式有问题

今天将 Angular8 的项目升级到 10了,ng serve --o 后没有任何报错(当然是踩过无数坑后)运行起来,但是之前的页面样式不对了。在解决报错的过程中有个报错如下
`ERROR in multi ./node_modules/ng-zorro-antd/ng-zorro-antd.min.css ./src/styles.css ./node_modules/primeicons/primeicons.css ./node_modules/primeng/resources/themes/nova-light/theme.css ./node_modules/primeng/resources/primeng.min.css
Module not found: Error: Can't resolve 'D:softwarefrontEndjsffe ode_modulesprimeng esourceshemes ova-lightheme.css' in 'D:softwarefrontEndjsffe'`
然后手动从别的项目将文件 nova-lightheme.css 拷贝来之后运行项目就没有报错了。上面报错的 css 样式文件我都没有理会,仅仅将 nova-lightheme.css拷贝来之后就没有任何报错了,是不是这里仍然有问题导致页面的样式不对?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...