WARN A new version of sass-loader is available. Please upgrade for best experience.

通过脚手架安装的项目,根据官网给的步骤一步一步安装引用会报错
WARN A new version of sass-loader is available. Please upgrade for best experience._第1张图片

WARN A new version of sass-loader is available. Please upgrade for best experience._第2张图片
这样写就报错
uni.scss

import ‘uview-ui/theme.scss’;

App.vue

import ‘uview-ui/theme.scss’;

换成
uni.scss

@import ‘./…/node_modules/uview-ui/theme.scss’;

App.vue

import “./…/node_modules/uview-ui/index.scss”;

你可能感兴趣的:(uni-app,uView)