Open axingshow opened 4 years ago
Module parse failed: Unexpected token (78:10) You may need an appropriate loader to handle this file type. | x: -width / 2, | y: -height / 2, | ...icon | }, | className: 'ellipse-icon'
@ ./node_modules/@antv/g6/src/shape/nodes/index.js 3:0-20 @ ./node_modules/@antv/g6/src/shape/index.js @ ./node_modules/@antv/g6/src/item/item.js @ ./node_modules/wfd-vue/dist/wfd-vue.umd.min.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/Process/index.vue @ ./src/views/Process/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://127.0.0.1:9090 webpack/hot/dev-server ./src/main.js
error in ./node_modules/@antv/g6/src/shape/nodes/triangle.js
Module parse failed: Unexpected token (86:10) You may need an appropriate loader to handle this file type. | x: iconW, | y: iconH, | ...icon | }, | className: 'triangle-icon'
@ ./node_modules/@antv/g6/src/shape/nodes/index.js 5:0-21 @ ./node_modules/@antv/g6/src/shape/index.js @ ./node_modules/@antv/g6/src/item/item.js @ ./node_modules/wfd-vue/dist/wfd-vue.umd.min.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/Process/index.vue @ ./src/views/Process/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://127.0.0.1:9090 webpack/hot/dev-server ./src/main.js
光看这个感觉是依赖包的问题,你咋拉完代码,执行build时候没报错吗
To install them, you can run: npm install --save @antv/g6/src @antv/g6/src/item/item @antv/g6/src/shape/single-shape-mixin
怎么回事,怎么装都不成功
Module parse failed: Unexpected token (78:10) You may need an appropriate loader to handle this file type. | x: -width / 2, | y: -height / 2, | ...icon | }, | className: 'ellipse-icon'
@ ./node_modules/@antv/g6/src/shape/nodes/index.js 3:0-20 @ ./node_modules/@antv/g6/src/shape/index.js @ ./node_modules/@antv/g6/src/item/item.js @ ./node_modules/wfd-vue/dist/wfd-vue.umd.min.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/Process/index.vue @ ./src/views/Process/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://127.0.0.1:9090 webpack/hot/dev-server ./src/main.js
error in ./node_modules/@antv/g6/src/shape/nodes/triangle.js
Module parse failed: Unexpected token (86:10) You may need an appropriate loader to handle this file type. | x: iconW, | y: iconH, | ...icon | }, | className: 'triangle-icon'
@ ./node_modules/@antv/g6/src/shape/nodes/index.js 5:0-21 @ ./node_modules/@antv/g6/src/shape/index.js @ ./node_modules/@antv/g6/src/item/item.js @ ./node_modules/wfd-vue/dist/wfd-vue.umd.min.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/Process/index.vue @ ./src/views/Process/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://127.0.0.1:9090 webpack/hot/dev-server ./src/main.js