编译H5失败
-
在mac上运行命令 sudo npm run dev:h5,显示如下错误信息,应该怎么处理:
Failed to compile.
./node_modules/@tarojs/components/src/components/video/style/index.scss 1:0
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders@charset "UTF-8";
|
| .taro-video {
-
我也遇到了,同样问题,第一次尝试taro。
-
解决了$ npm install -g mirror-config-china
-
@jd_40f71223e7a18
您好 您当时操作项目版本是多少?我和你出现了一个相似的问题,执行了你的解决方法 我这里还是不行
-
@jd_43794cd26c4d3 估计你也是 sass 没有安装好,要不删了再装个试试