V1.18.17版本,编译view插件报如下错误,已经尝试切换nodejs版本还是不行。
[INFO] ERROR in ./src/components/views/filter/FilterTree.vue?vue&type=script&lang=js (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/views/filter/FilterTree.vue?vue&type=script&lang=js) 85:16
[INFO] Module parse failed: Unexpected token (85:16)
[INFO] File was processed with these loaders:
[INFO] * ./node_modules/babel-loader/lib/index.js
[INFO] * ./node_modules/vue-loader/lib/index.js
[INFO] You may need an additional loader to handle the result of these loaders.
[INFO] | dfsTreeDelete(arr) {
[INFO] | arr.forEach(ele => {
[INFO] > if (ele?.subTree?.items?.length) {
[INFO] | this.dfsTreeDelete(ele.subTree.items);
[INFO] | } else {
[INFO] @ ./src/components/views/filter/FilterTree.vue?vue&type=script&lang=js 1:0-181 1:197-200 1:202-380 1:202-380
[INFO] @ ./src/components/views/filter/FilterTree.vue
[INFO] @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/antv/sankey/data.vue?vue&type=script&lang=js
[INFO] @ ./src/views/antv/sankey/data.vue?vue&type=script&lang=js
[INFO] @ ./src/views/antv/sankey/data.vue
[INFO]
[INFO] Build failed with errors.
[INFO]
[INFO] npm ERR! code 1
[INFO] npm ERR! path F:\dataease-1.18.17\extensions\dataease-extensions-view\view-sankey\view-sankey-frontend
[INFO] npm ERR! command failed
[INFO] npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build/build-async-plugins.js
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2024-04-09T08_26_36_111Z-debug.log