直接导入项目以后报错
6 Module Error (from ./nodemodules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
15:53:17.606 (Emitted value instead of an instance of Error)
15:53:17.606 Errors compiling template:
15:53:17.606 <template> cannot be keyed. Place the key on real elements instead.
15:53:17.606 2 | <view class="hr-datetime-picker">
15:53:17.606 3 | <view class="input-wrap">
15:53:17.606 4 | <template v-for="(, index) in 2" :key="index">
15:53:17.606 | ^^^^^^^^^^^^
15:53:17.606 5 | <text
15:53:17.606 6 | :style="props.dateSelectTextStyle"
15:53:17.606 at C:\Users\86180\Desktop\wx-safeline-h5\uni_modules\hr-datetime-picker\components\hr-datetime-picker\hr-datetime-picker.vue:0
15:53:17.606 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
15:53:17.606 SassError: Undefined variable: "$uni-primary".
15:53:17.606 on line 321 of C:\Users\86180\Desktop\wx-safeline-h5\uni_modules\hr-datetime-picker\components\hr-datetime-picker\hr-datetime-picker.vue
15:53:17.606 >> border: 1px solid $uni-primary;
15:53:17.606 ------------------------^
0 个回复