ant-design-vue-pro
ant-design-vue-pro copied to clipboard
yarn run serve出錯
使用yran run serve出現錯誤 ERROR Failed to compile with 1 error 上午2:28:46 error in ./src/components/NumberInfo/NumberInfo.vue?vue&type=style&index=0&id=4370c5af&lang=less&scoped=true& Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
請問要如何解決,謝謝
完整訊息如下:
yarn run serve yarn run v1.22.19 $ vue-cli-service serve INFO Starting development server... 67% building 1417/1486 modules 69 active ...de_modules\ant-design-vue\es\radio\style\index.less [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
67% building 1437/1499 modules 62 active ...es\webpack-theme-color-replacer\client\varyColor.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
67% building 1440/1500 modules 60 active ...\ant-design-vue-pro\node_modules\lodash_baseFor.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
67% building 1466/1518 modules 52 active ...node_modules\ant-design-vue\es\empty\style\index.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 1493/1533 modules 40 active ...ign-vue-pro\src\components\FooterToolbar\index.less[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 1510/1543 modules 33 active ...ules@ant-design-vue\pro-layout\es\BasicLayout.less[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
67% building 1704/1764 modules 60 active ...nents\Charts\ChartCard.vue?vue&type=script&lang=js&[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 2111/2163 modules 52 active ...pro\node_modules\ant-design-vue\es\vc-rate\index.js[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 2127/2180 modules 53 active ...vue-pro\node_modules\array-tree-filter\lib\index.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 2141/2191 modules 50 active ...ules\core-js\modules\es.reflect.get-prototype-of.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
68% building 2142/2191 modules 49 active ...ules\core-js\modules\es.reflect.get-prototype-of.js [ @vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
95% emitting ThemeColorReplacerExtracted theme color css content length: 28095 98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 上午2:28:46
error in ./src/components/NumberInfo/NumberInfo.vue?vue&type=style&index=0&id=4370c5af&lang=less&scoped=true&
Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
同问
the same
node v16.14.2 同样问题
我也一样
mac,node版本换成v14.16.0也是一样的错误,install时出现了一堆错误,好多依赖都无法使用了
- 可以使用 feat/multi-tab 分支、feat/cdn_imports分支、v3.0.3Tag;
git checkout feat/multi-tab;- 参考 ReadMe.md Other pls use
releaseversion; - 慢慢转 vben吧,或React线吧.
大佬们找到解决方案了不
去掉 Number.vue 最后那个style里面的属性就好了
这个问题刚遇到
这个问题很神奇,我同一个项目,克隆到两目录,install 的日期不一样。。。一个目录可以正常run,另一个不行。。。我估计可能跟某个库的版本有关系。
按照 xiaocer 的方法确实可以启动了.
xiaocer的方法可以解决,请问大家是M1遇上这个情况的吗
按照 xiaocer 的方法确实可以启动了.
xiaocer的方法可以解决,请问大家是M1遇上这个情况的吗
inter i9, same issue.
xiaocer的方法可以解决,请问大家是M1遇上这个情况的吗
inter i9, same issue.
不是M1
这个问题很神奇,我同一个项目,克隆到两目录,install 的日期不一样。。。一个目录可以正常run,另一个不行。。。我估计可能跟某个库的版本有关系。
一样情况,原先项目能运行,昨天手欠,删了重新install,就不行了... 不知道哪个库影响了,能找出来吗?
总不能靠注释代码解决问题吧... - - !
抽了点时间看了一下,index.less中
:global {
.anticon-caret-up {
color: @red-6;
}
.anticon-caret-down {
color: @green-6;
}
}
修改为:
::v-deep(.anticon-caret-up) {
color: @red-6;
}
::v-deep(.anticon-caret-down) {
color: @green-6;
}
我也是
一模一样,究竟咋解决啊
总不能靠注释代码解决问题吧... - - !
抽了点时间看了一下,index.less中
:global { .anticon-caret-up { color: @red-6; } .anticon-caret-down { color: @green-6; } }修改为:
::v-deep(.anticon-caret-up) { color: @red-6; } ::v-deep(.anticon-caret-down) { color: @green-6; }
有找到解决方法吗
因为是vue2.7开始在模版中有替换,但是项目使用的vue2.6 所以猜测应该是其他的库导致的
有人维护吗?
有个der