2.0.0-beta.10 taro-ui全局引入样式报错



  • ./.temp/app.scss)
    Module build failed (from ./node_modules/sass-loader/lib/loader.js):

    @import "~taro-ui/dist/style/index.scss"; // 引入组件样式 - 方式二
    ^
    Can't find stylesheet to import.

    1 │ @import "~taro-ui/dist/style/index.scss"; // 引入组件样式 - 方式二
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    stdin 1:9 root stylesheet
    in


登录后回复