antvis/G6

vue2 "@antv/g6": "^4.8.24" ReferenceError: exports is not defined #5763

iOSHw posted onGitHub

Describe the bug

本地运行没问题,发布到 test 环境编译没抱错,运行报错 vue-router.esm.js:2314 ReferenceError: exports is not defined at ./node_modules/tslib/tslib.es6.mjs (index.js:21:1) at webpack_require (bootstrap:19:1) at ./node_modules/@antv/g6-pc/es/index.js (index.js:1:1) at webpack_require (bootstrap:19:1) at ./node_modules/@antv/g6/es/index.js (index.js:1:1) at webpack_require (bootstrap:19:1) at ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/CbSalesRuleG6/RuleLook.vue?vue&type=script&lang=js& (RuleLook.vue:12:1) at webpack_require (bootstrap:19:1) at ./src/components/CbSalesRuleG6/RuleLook.vue?vue&type=script&lang=js& (index.vue:1:244) at webpack_require (bootstrap:19:1) image

Your Example Website or App

https://ops.yaochanchan.com

Steps to Reproduce the Bug or Issue

运行不报错,打包后报错

Expected behavior

image

Screenshots or Videos

No response

Platform

vue2 "@antv/g6": "^4.8.24"

Additional context

No response


打包问题请自行解决哈

posted by Aarebecca 11 months ago

Fund this Issue

$0.00
Funded

Pull requests