Open XIAOSHIDECUICAN opened 1 year ago
我也是这个问题,请问你解决了吗?目前找到的方法是在 config/index.js 中的 mini 里面添加
miniCssExtractPluginOption: {
ignoreOrder: true,
}
但是只是治标不治本,不会显示报错了而已,如果后面还遇到问题再把它注释掉
我在src\pages\index\index.vue
文件里这样写
<view class="index">
<nut-row>
<nut-col>
<nut-cell-group>
<nut-cell> </nut-cell>
</nut-cell-group>
</nut-col>
</nut-row>
</view>
在src\pages\my\index.vue
文件里这样写
<template>
<view class="index">
<nut-row>
<nut-col :span="7" v-if="isProperty"> </nut-col>
</nut-row>
<nut-cell-group>
<nut-cell> </nut-cell>
</nut-cell-group>
</view>
</template>
src\app.config.ts
配置了
pages: ["pages/index/index", "pages/my/index"],
在环境nutui-demo/nutui4-vue/taro
下运行npm run dev:weapp
这个命令得到下面的结果
Warinings:
Error: chunk common [mini-css-extract-plugin]
Conflicting order. Following module has been added:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/row/index.scss
despite it was not able to fulfill desired ordering with these modules:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/cell/index.scss
- couldn't fulfill desired order of chunk group(s) pages/my/index
- while fulfilling desired order of chunk group(s) pages/index/index
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/cellgroup/index.scss
- couldn't fulfill desired order of chunk group(s) pages/my/index
- while fulfilling desired order of chunk group(s) pages/index/index
at Array.forEach (<anonymous>)
Error: chunk common [mini-css-extract-plugin]
Conflicting order. Following module has been added:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/cellgroup/index.scss
despite it was not able to fulfill desired ordering with these modules:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/col/index.scss
- couldn't fulfill desired order of chunk group(s) pages/index/index
- while fulfilling desired order of chunk group(s) pages/my/index
at Array.forEach (<anonymous>)
Error: chunk common [mini-css-extract-plugin]
Conflicting order. Following module has been added:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/col/index.scss
despite it was not able to fulfill desired ordering with these modules:
* css ./node_modules/@tarojs/webpack5-runner/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[1]!./node_modules/@tarojs/webpack5-runner/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-4.use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-4.use[4]!./node_modules/@nutui/nutui-taro/dist/packages/cell/index.scss
- couldn't fulfill desired order of chunk group(s) pages/my/index
- while fulfilling desired order of chunk group(s) pages/index/index
at Array.forEach (<anonymous>)
测试