- faq2022年2月23日 / 1分钟阅读
为什么vue的data是一个函数
为什么组件中的 data 必须是一个函数,然后 return 一个对象,而 new Vue 实例里,data 可以直接是一个对象? - faq2022年1月24日 / 1分钟阅读
tailwind修改container class的默认配置
tailwind 默认自带 .container 类,但是UI设计的宽度断点与默认配置不一致,所以需要针对默认值进行修改。查阅了相关资料,得到的配置如下: - faq2022年1月23日 / 2分钟阅读
node-sass总是安装失败?
node-sass除了npm部分的代码,还会下载二进制文件binding.node,默认源是github,国内访问较慢,特殊时期甚至无法访问。我们也可以将其改成国内源 - faq2022年1月21日 / 1分钟阅读
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages
这个错误一般出现在启动webpack打包项目的时候,这是因为缺少了webpack-cli模块,使用webpack命令时没有找到webpack-cli - faq2022年1月20日 / 1分钟阅读
webpack报错 TypeError: webpackMerge is not a function
webpack使用merge的时候,会报错 TypeError: webpackMerge is not a function - faq2022年1月12日 / 1分钟阅读
webpack Cannot destructure property compile of 'undefined' or 'null'
webpack常见错误,Cannot destructure property `compile` of ‘undefined’ or ‘null’. - faq2022年1月11日 / 1分钟阅读
webpack打包报错 ERROR in Error Child compilation failed
webpack打包报错 ERROR in Error Child compilation failed - faq2022年1月2日 / 1分钟阅读
如何在 vue3 中从 `setup` 方法中`emit` 事件?
setup 函数有两个参数,第一个是 props , 第二个是 context 暴露了三个组件属性 attrs,slots 和 emit - faq2022年1月2日 / 1分钟阅读
'vue-cli-service' is not recognized as an internal or external command?
在 vue 项目里面运行 npm run serve 报了以下错误