yarn serve
yarn serve报下面错误,要怎么弄呢?
ERROR Failed to compile with 3 errors 下午10:06:47These relative modules were not found:
* ./fonts/ionicons.svg?v=3.0.0 in ./node_modules/css-loader??ref--10-oneOf-3-1!./node_modules/postcss-loader/lib??ref--10-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-3-3!./src/theme.less
* ./fonts/ionicons.ttf?v=3.0.0 in ./node_modules/css-loader??ref--10-oneOf-3-1!./node_modules/postcss-loader/lib??ref--10-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-3-3!./src/theme.less
* ./fonts/ionicons.woff?v=3.0.0 in ./node_modules/css-loader??ref--10-oneOf-3-1!./node_modules/postcss-loader/lib??ref--10-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-3-3!./src/theme.less
No type errors found
Version: typescript 3.1.1
Time: 11754ms
回答:
引用 /fonts 下的内容路径错误,试试用相对路径或者全路径
以上是 yarn serve 的全部内容, 来源链接: utcz.com/p/936295.html