vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.56k stars 6.19k forks source link

Uncaught TypeError: Cannot read property 'ToolItem' of undefined #3413

Closed Ronbb closed 2 years ago

Ronbb commented 3 years ago

Describe the bug

Throw error Uncaught TypeError: Cannot read property 'ToolItem' of undefined.

And I've found an error in the bundle of @antv/x6 (ToolsView is used before definition):


/* ... */
var Button = class extends ToolsView.ToolItem // ...

/* ... */

var ToolsView = class extends View // ...

/* ... */

Reproduction

Please check this demo: vite-x6.zip

Without src/init.tsx:66 and src/init.tsx:6, it works as exprected.

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

  System:
    OS: Windows 10 10.0.19042
    CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
    Memory: 4.25 GB / 15.80 GB
  Binaries:
    Node: 14.12.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.5.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 90.0.4430.212
    Edge: Spartan (44.19041.423.0), Chromium (90.0.818.56)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    vite: ^2.3.2 => 2.3.2 

Used package manager: yarn

Logs

yarn vite --debug
yarn run v1.22.10
warning package.json: No license field
$ C:\Project\tmp\vite-x6\node_modules\.bin\vite --debug
  vite:config bundled config file loaded in 92ms +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'vite:pre-alias',
  vite:config     'alias',
  vite:config     'react-refresh',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:client-inject',
  vite:config     'vite:import-analysis'
  vite:config   ],
  vite:config   server: { fsServe: { root: 'C:/Project/tmp/vite-x6', strict: false } },
  vite:config   configFile: 'C:/Project/tmp/vite-x6/vite.config.ts',
  vite:config   configFileDependencies: [ 'vite.config.ts' ],
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     server: { fsServe: [Object] }
  vite:config   },
  vite:config   root: 'C:/Project/tmp/vite-x6',
  vite:config   base: '/',
  vite:config   resolve: { dedupe: undefined, alias: [ [Object] ] },
  vite:config   publicDir: 'C:\\Project\\tmp\\vite-x6\\public',
  vite:config   cacheDir: 'C:\\Project\\tmp\\vite-x6\\node_modules\\.vite',
  vite:config   command: 'serve',
  vite:config   mode: 'development',
  vite:config   isProduction: false,
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500,
  vite:config     watch: null
  vite:config   },
  vite:config   env: { BASE_URL: '/', MODE: 'development', DEV: true, PROD: false },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     warnOnce: [Function: warnOnce],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver],
  vite:config   optimizeDeps: { esbuildOptions: { keepNames: undefined } }
  vite:config } +6ms
  vite:deps Crawling dependencies using entries:
  vite:deps   C:/Project/tmp/vite-x6/index.html +0ms
  vite:resolve 0ms   /src/main.tsx -> C:/Project/tmp/vite-x6/src/main.tsx +0ms
  vite:resolve 4ms   react -> C:/Project/tmp/vite-x6/node_modules/react/index.js +6ms
  vite:resolve 2ms   react-dom -> C:/Project/tmp/vite-x6/node_modules/react-dom/index.js +7ms
  vite:resolve 1ms   ./App -> C:/Project/tmp/vite-x6/src/App.tsx +4ms
  vite:resolve 1ms   ./init -> C:/Project/tmp/vite-x6/src/init.tsx +2ms
  vite:resolve 2ms   insert-css -> C:/Project/tmp/vite-x6/node_modules/insert-css/index.js +4ms
  vite:resolve 3ms   antd -> C:/Project/tmp/vite-x6/node_modules/antd/es/index.js +4ms
  vite:resolve 3ms   @antv/x6 -> C:/Project/tmp/vite-x6/node_modules/@antv/x6/es/index.js +4ms
  vite:resolve 1ms   @antv/x6-react-shape -> C:/Project/tmp/vite-x6/node_modules/@antv/x6-react-shape/es/index.js +2ms
  vite:deps Scan completed in 62ms: {
  react: 'C:/Project/tmp/vite-x6/node_modules/react/index.js',
  'react-dom': 'C:/Project/tmp/vite-x6/node_modules/react-dom/index.js',
  'insert-css': 'C:/Project/tmp/vite-x6/node_modules/insert-css/index.js',
  antd: 'C:/Project/tmp/vite-x6/node_modules/antd/es/index.js',
  '@antv/x6': 'C:/Project/tmp/vite-x6/node_modules/@antv/x6/es/index.js',
  '@antv/x6-react-shape': 'C:/Project/tmp/vite-x6/node_modules/@antv/x6-react-shape/es/index.js'
} +54ms
Pre-bundling dependencies:
  react
  react-dom
  insert-css
  antd
  @antv/x6
  (...and 1 more)
(this will be run only when your dependencies or config have changed)
  vite:resolve 0ms   object-assign -> null +0ms
  vite:resolve 2ms   object-assign -> C:/Project/tmp/vite-x6/node_modules/object-assign/index.js +0ms
  vite:resolve 1ms   jquery -> null +9ms
  vite:resolve 2ms   jquery -> C:/Project/tmp/vite-x6/node_modules/jquery/dist/jquery.js +0ms
  vite:resolve 0ms   scheduler -> null +57ms
  vite:resolve 3ms   scheduler -> C:/Project/tmp/vite-x6/node_modules/scheduler/index.js +66ms
  vite:resolve 0ms   scheduler/tracing -> null +4ms
  vite:resolve 0ms   scheduler/tracing -> C:/Project/tmp/vite-x6/node_modules/scheduler/tracing.js +2ms
  vite:resolve 0ms   lodash-es -> null +2ms
  vite:resolve 3ms   lodash-es -> C:/Project/tmp/vite-x6/node_modules/lodash-es/lodash.js +74ms
  vite:resolve 0ms   @babel/runtime/helpers/esm/extends -> null +53ms
  vite:resolve 0ms   @babel/runtime/helpers/esm/defineProperty -> null +0ms
  vite:resolve 11ms  @babel/runtime/helpers/esm/extends -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/extends.js +51ms
  vite:resolve 11ms  @babel/runtime/helpers/esm/defineProperty -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0ms
  vite:resolve 2ms   mousetrap -> null +15ms
  vite:resolve 2ms   rc-picker/es/generate/moment -> null +0ms
  vite:resolve 2ms   jquery-mousewheel -> null +1ms
  vite:resolve 38ms  mousetrap -> C:/Project/tmp/vite-x6/node_modules/mousetrap/mousetrap.js +42ms
  vite:resolve 38ms  rc-picker/es/generate/moment -> C:/Project/tmp/vite-x6/node_modules/rc-picker/es/generate/moment.js +0ms
  vite:resolve 38ms  jquery-mousewheel -> C:/Project/tmp/vite-x6/node_modules/jquery-mousewheel/jquery.mousewheel.js +0ms
  vite:resolve 6ms   rc-util/es/warning -> null +47ms
  vite:resolve 7ms   @babel/runtime/helpers/esm/slicedToArray -> null +1ms
  vite:resolve 6ms   @babel/runtime/helpers/esm/typeof -> null +0ms
  vite:resolve 5ms   @babel/runtime/helpers/esm/toConsumableArray -> null +0ms
  vite:resolve 3ms   @babel/runtime/helpers/esm/classCallCheck -> null +1ms
  vite:resolve 106ms rc-util/es/warning -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/warning.js +117ms
  vite:resolve 107ms @babel/runtime/helpers/esm/slicedToArray -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1ms
  vite:resolve 107ms @babel/runtime/helpers/esm/typeof -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/typeof.js +0ms
  vite:resolve 109ms @babel/runtime/helpers/esm/toConsumableArray -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +2ms
  vite:resolve 110ms @babel/runtime/helpers/esm/classCallCheck -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1ms
  vite:resolve 8ms   moment -> null +123ms
  vite:resolve 9ms   @ant-design/icons/es/components/Context -> null +1ms
  vite:resolve 8ms   rc-util/es/omit -> null +0ms
  vite:resolve 5ms   @babel/runtime/helpers/esm/createClass -> null +1ms
  vite:resolve 24ms  moment -> C:/Project/tmp/vite-x6/node_modules/moment/dist/moment.js +40ms
  vite:resolve 24ms  @ant-design/icons/es/components/Context -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/components/Context.js +0ms
  vite:resolve 24ms  rc-util/es/omit -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/omit.js +0ms
  vite:resolve 25ms  @babel/runtime/helpers/esm/createClass -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/createClass.js +1ms
  vite:resolve 0ms   classnames -> null +30ms
  vite:resolve 2ms   classnames -> C:/Project/tmp/vite-x6/node_modules/classnames/index.js +7ms
  vite:resolve 6ms   rc-rate -> null +10ms
  vite:resolve 6ms   @ant-design/react-slick -> null +0ms
  vite:resolve 6ms   rc-field-form -> null +1ms
  vite:resolve 5ms   @babel/runtime/regenerator -> null +0ms
  vite:resolve 5ms   @babel/runtime/helpers/esm/inherits -> null +1ms
  vite:resolve 16ms  @babel/runtime/helpers/esm/assertThisInitialized -> null +12ms
  vite:resolve 27ms  rc-rate -> C:/Project/tmp/vite-x6/node_modules/rc-rate/es/index.js +49ms
  vite:resolve 28ms  @ant-design/react-slick -> C:/Project/tmp/vite-x6/node_modules/@ant-design/react-slick/es/index.js +1ms
  vite:resolve 28ms  rc-field-form -> C:/Project/tmp/vite-x6/node_modules/rc-field-form/es/index.js +0ms
  vite:resolve 29ms  @babel/runtime/regenerator -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/regenerator/index.js +1ms
  vite:resolve 30ms  @babel/runtime/helpers/esm/inherits -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/inherits.js +1ms
  vite:resolve 30ms  @babel/runtime/helpers/esm/assertThisInitialized -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0ms
  vite:resolve 0ms   rc-util/es/Children/toArray -> null +33ms
  vite:resolve 1ms   @ant-design/icons/es/icons/InfoCircleOutlined -> null +1ms
  vite:resolve 8ms   rc-util/es/Children/toArray -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Children/toArray.js +12ms
  vite:resolve 8ms   @ant-design/icons/es/icons/InfoCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js +0ms
  vite:resolve 3ms   rc-tabs -> null +13ms
  vite:resolve 4ms   rc-motion -> null +1ms
  vite:resolve 4ms   rc-dropdown -> null +0ms
  vite:resolve 4ms   @babel/runtime/helpers/esm/createSuper -> null +0ms
  vite:resolve 4ms   @ant-design/icons/es/icons/EyeOutlined -> null +1ms
  vite:resolve 4ms   rc-switch -> null +0ms
  vite:resolve 4ms   rc-tree -> null +0ms
  vite:resolve 4ms   rc-tree-select -> null +0ms
  vite:resolve 5ms   rc-collapse -> null +1ms
  vite:resolve 4ms   @ant-design/icons/es/icons/CloseOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/StarFilled -> null +1ms
  vite:resolve 5ms   rc-checkbox -> null +0ms
  vite:resolve 5ms   rc-pagination -> null +0ms
  vite:resolve 6ms   rc-util/es/hooks/useMemo -> null +1ms
  vite:resolve 6ms   @ant-design/icons/es/icons/CheckCircleFilled -> null +0ms
  vite:resolve 6ms   rc-dialog -> null +1ms
  vite:resolve 67ms  rc-tabs -> C:/Project/tmp/vite-x6/node_modules/rc-tabs/es/index.js +77ms
  vite:resolve 68ms  rc-motion -> C:/Project/tmp/vite-x6/node_modules/rc-motion/es/index.js +1ms
  vite:resolve 68ms  rc-dropdown -> C:/Project/tmp/vite-x6/node_modules/rc-dropdown/es/index.js +0ms
  vite:resolve 69ms  @babel/runtime/helpers/esm/createSuper -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/createSuper.js +1ms
  vite:resolve 69ms  @ant-design/icons/es/icons/EyeOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/EyeOutlined.js +0ms
  vite:resolve 70ms  rc-switch -> C:/Project/tmp/vite-x6/node_modules/rc-switch/es/index.js +1ms
  vite:resolve 70ms  rc-tree -> C:/Project/tmp/vite-x6/node_modules/rc-tree/es/index.js +0ms
  vite:resolve 70ms  rc-tree-select -> C:/Project/tmp/vite-x6/node_modules/rc-tree-select/es/index.js +0ms
  vite:resolve 71ms  rc-collapse -> C:/Project/tmp/vite-x6/node_modules/rc-collapse/es/index.js +1ms
  vite:resolve 71ms  @ant-design/icons/es/icons/CloseOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CloseOutlined.js +0ms
  vite:resolve 71ms  @ant-design/icons/es/icons/StarFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/StarFilled.js +0ms
  vite:resolve 72ms  rc-checkbox -> C:/Project/tmp/vite-x6/node_modules/rc-checkbox/es/index.js +1ms
  vite:resolve 72ms  rc-pagination -> C:/Project/tmp/vite-x6/node_modules/rc-pagination/es/index.js +0ms
  vite:resolve 73ms  rc-util/es/hooks/useMemo -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/hooks/useMemo.js +1ms
  vite:resolve 73ms  @ant-design/icons/es/icons/CheckCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js +0ms
  vite:resolve 72ms  rc-dialog -> C:/Project/tmp/vite-x6/node_modules/rc-dialog/es/index.js +1ms
  vite:resolve 0ms   @ant-design/icons/es/icons/CheckCircleOutlined -> null +76ms
  vite:resolve 1ms   @ant-design/icons/es/icons/CheckCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.js +4ms
  vite:resolve 3ms   rc-notification -> null +6ms
  vite:resolve 4ms   rc-drawer -> null +1ms
  vite:resolve 4ms   rc-input-number -> null +1ms
  vite:resolve 5ms   rc-util/es/hooks/useMergedState -> null +1ms
  vite:resolve 5ms   rc-tooltip -> null +0ms
  vite:resolve 5ms   rc-pagination/es/locale/en_US -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/ArrowLeftOutlined -> null +1ms
  vite:resolve 5ms   rc-util/es/ref -> null +0ms
  vite:resolve 5ms   rc-image -> null +0ms
  vite:resolve 6ms   @ant-design/icons/es/icons/LoadingOutlined -> null +1ms
  vite:resolve 6ms   rc-util/es/Dom/addEventListener -> null +0ms
  vite:resolve 6ms   @ant-design/icons/es/icons/CloseCircleFilled -> null +0ms
  vite:resolve 7ms   rc-steps -> null +1ms
  vite:resolve 61ms  rc-notification -> C:/Project/tmp/vite-x6/node_modules/rc-notification/es/index.js +71ms
  vite:resolve 61ms  rc-drawer -> C:/Project/tmp/vite-x6/node_modules/rc-drawer/es/index.js +0ms
  vite:resolve 62ms  rc-input-number -> C:/Project/tmp/vite-x6/node_modules/rc-input-number/es/index.js +1ms
  vite:resolve 62ms  rc-util/es/hooks/useMergedState -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/hooks/useMergedState.js +0ms
  vite:resolve 63ms  rc-tooltip -> C:/Project/tmp/vite-x6/node_modules/rc-tooltip/es/index.js +1ms
  vite:resolve 63ms  rc-pagination/es/locale/en_US -> C:/Project/tmp/vite-x6/node_modules/rc-pagination/es/locale/en_US.js +0ms
  vite:resolve 63ms  @ant-design/icons/es/icons/ArrowLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js +0ms
  vite:resolve 64ms  rc-util/es/ref -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/ref.js +1ms
  vite:resolve 64ms  rc-image -> C:/Project/tmp/vite-x6/node_modules/rc-image/es/index.js +0ms
  vite:resolve 64ms  @ant-design/icons/es/icons/LoadingOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js +0ms
  vite:resolve 65ms  rc-util/es/Dom/addEventListener -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/addEventListener.js +1ms
  vite:resolve 65ms  @ant-design/icons/es/icons/CloseCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js +0ms
  vite:resolve 65ms  rc-steps -> C:/Project/tmp/vite-x6/node_modules/rc-steps/es/index.js +0ms
  vite:resolve 3ms   react-is -> null +70ms
  vite:resolve 2ms   @ant-design/icons/es/icons/CloseCircleOutlined -> null +0ms
  vite:resolve 4ms   @babel/runtime/helpers/esm/objectSpread2 -> null +2ms
  vite:resolve 5ms   @ant-design/icons/es/icons/UpOutlined -> null +1ms
  vite:resolve 6ms   rc-slider -> null +1ms
  vite:resolve 5ms   @ant-design/icons/es/icons/ExclamationCircleFilled -> null +0ms
  vite:resolve 5ms   rc-util/es/getScrollBarSize -> null +0ms
  vite:resolve 6ms   rc-select -> null +1ms
  vite:resolve 6ms   rc-mentions -> null +0ms
  vite:resolve 7ms   @ant-design/icons/es/icons/RightOutlined -> null +1ms
  vite:resolve 7ms   @ant-design/icons/es/icons/ArrowRightOutlined -> null +0ms
  vite:resolve 8ms   @ant-design/icons/es/icons/SearchOutlined -> null +1ms
  vite:resolve 7ms   @ant-design/icons/es/icons/ExclamationCircleOutlined -> null +0ms
  vite:resolve 8ms   @ant-design/icons/es/icons/EllipsisOutlined -> null +1ms
  vite:resolve 8ms   @ant-design/icons/es/icons/CheckOutlined -> null +0ms
  vite:resolve 62ms  react-is -> C:/Project/tmp/vite-x6/node_modules/react-is/index.js +75ms
  vite:resolve 63ms  @ant-design/icons/es/icons/CloseCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CloseCircleOutlined.js +1ms
  vite:resolve 63ms  @babel/runtime/helpers/esm/objectSpread2 -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0ms
  vite:resolve 63ms  @ant-design/icons/es/icons/UpOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/UpOutlined.js +0ms
  vite:resolve 64ms  rc-slider -> C:/Project/tmp/vite-x6/node_modules/rc-slider/es/index.js +1ms
  vite:resolve 64ms  @ant-design/icons/es/icons/ExclamationCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js +0ms
  vite:resolve 64ms  rc-util/es/getScrollBarSize -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/getScrollBarSize.js +0ms
  vite:resolve 65ms  rc-select -> C:/Project/tmp/vite-x6/node_modules/rc-select/es/index.js +1ms
  vite:resolve 65ms  rc-mentions -> C:/Project/tmp/vite-x6/node_modules/rc-mentions/es/index.js +0ms
  vite:resolve 65ms  @ant-design/icons/es/icons/RightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/RightOutlined.js +0ms
  vite:resolve 66ms  @ant-design/icons/es/icons/ArrowRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.js +1ms
  vite:resolve 66ms  @ant-design/icons/es/icons/SearchOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/SearchOutlined.js +0ms
  vite:resolve 65ms  @ant-design/icons/es/icons/ExclamationCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js +0ms      
  vite:resolve 66ms  @ant-design/icons/es/icons/EllipsisOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js +1ms
  vite:resolve 66ms  @ant-design/icons/es/icons/CheckOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +0ms
  vite:resolve 4ms   rc-util/es/KeyCode -> null +93ms
  vite:resolve 5ms   lodash/padEnd -> null +1ms
  vite:resolve 5ms   @ant-design/icons-svg/es/asn/StarFilled -> null +0ms
  vite:resolve 5ms   lodash/isEqual -> null +0ms
  vite:resolve 6ms   rc-textarea -> null +1ms
  vite:resolve 5ms   @babel/runtime/helpers/esm/objectWithoutProperties -> null +0ms
  vite:resolve 5ms   rc-resize-observer -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/DownOutlined -> null +0ms
  vite:resolve 6ms   @ant-design/icons/es/icons/BarsOutlined -> null +1ms
  vite:resolve 6ms   @ant-design/icons/es/icons/LeftOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/PlusOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/WarningFilled -> null +0ms
  vite:resolve 5ms   rc-util/es/Dom/canUseDom -> null +1ms
  vite:resolve 5ms   @babel/runtime/helpers/typeof -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/EyeOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons-svg/es/asn/LoadingOutlined -> null +1ms
  vite:resolve 67ms  rc-util/es/KeyCode -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/KeyCode.js +99ms
  vite:resolve 67ms  lodash/padEnd -> C:/Project/tmp/vite-x6/node_modules/lodash/padEnd.js +0ms
  vite:resolve 67ms  @ant-design/icons-svg/es/asn/StarFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js +0ms
  vite:resolve 68ms  lodash/isEqual -> C:/Project/tmp/vite-x6/node_modules/lodash/isEqual.js +1ms
  vite:resolve 68ms  rc-textarea -> C:/Project/tmp/vite-x6/node_modules/rc-textarea/es/index.js +0ms
  vite:resolve 68ms  @babel/runtime/helpers/esm/objectWithoutProperties -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0ms
  vite:resolve 69ms  rc-resize-observer -> C:/Project/tmp/vite-x6/node_modules/rc-resize-observer/es/index.js +1ms
  vite:resolve 69ms  @ant-design/icons/es/icons/DownOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/DownOutlined.js +0ms
  vite:resolve 69ms  @ant-design/icons/es/icons/BarsOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/BarsOutlined.js +0ms
  vite:resolve 70ms  @ant-design/icons/es/icons/LeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/LeftOutlined.js +1ms
  vite:resolve 70ms  @ant-design/icons/es/icons/PlusOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/PlusOutlined.js +0ms
  vite:resolve 70ms  @ant-design/icons/es/icons/WarningFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/WarningFilled.js +0ms
  vite:resolve 71ms  rc-util/es/Dom/canUseDom -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/canUseDom.js +1ms
  vite:resolve 71ms  @babel/runtime/helpers/typeof -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/typeof.js +0ms
  vite:resolve 71ms  @ant-design/icons-svg/es/asn/EyeOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js +0ms
  vite:resolve 72ms  @ant-design/icons-svg/es/asn/LoadingOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +1ms
  vite:resolve 10ms  @ant-design/icons-svg/es/asn/RightOutlined -> null +87ms
  vite:resolve 11ms  @ant-design/icons-svg/es/asn/CloseOutlined -> null +1ms
  vite:resolve 11ms  @ant-design/icons-svg/es/asn/SearchOutlined -> null +0ms
  vite:resolve 12ms  lodash/padStart -> null +1ms
  vite:resolve 5ms   rc-menu -> null +0ms
  vite:resolve 6ms   rc-upload -> null +1ms
  vite:resolve 6ms   rc-cascader -> null +0ms
  vite:resolve 7ms   @ant-design/icons/es/icons/EyeInvisibleOutlined -> null +1ms
  vite:resolve 5ms   rc-table -> null +0ms
  vite:resolve 36ms  @ant-design/icons-svg/es/asn/RightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js +55ms
  vite:resolve 36ms  @ant-design/icons-svg/es/asn/CloseOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js +0ms
  vite:resolve 37ms  @ant-design/icons-svg/es/asn/SearchOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js +1ms
  vite:resolve 37ms  lodash/padStart -> C:/Project/tmp/vite-x6/node_modules/lodash/padStart.js +0ms
  vite:resolve 38ms  rc-menu -> C:/Project/tmp/vite-x6/node_modules/rc-menu/es/index.js +1ms
  vite:resolve 38ms  rc-upload -> C:/Project/tmp/vite-x6/node_modules/rc-upload/es/index.js +0ms
  vite:resolve 39ms  rc-cascader -> C:/Project/tmp/vite-x6/node_modules/rc-cascader/es/index.js +1ms
  vite:resolve 39ms  @ant-design/icons/es/icons/EyeInvisibleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js +0ms
  vite:resolve 40ms  rc-table -> C:/Project/tmp/vite-x6/node_modules/rc-table/es/index.js +1ms
  vite:resolve 2ms   rc-picker/es/locale/en_US -> null +44ms
  vite:resolve 21ms  rc-picker/es/locale/en_US -> C:/Project/tmp/vite-x6/node_modules/rc-picker/es/locale/en_US.js +24ms
  vite:resolve 2ms   @ant-design/icons/es/icons/VerticalAlignTopOutlined -> null +25ms
  vite:resolve 2ms   @ant-design/icons/es/icons/DoubleLeftOutlined -> null +0ms
  vite:resolve 2ms   array-tree-filter -> null +0ms
  vite:resolve 3ms   rc-tree/es/utils/treeUtil -> null +1ms
  vite:resolve 2ms   rc-table/es/Table -> null +0ms
  vite:resolve 3ms   rc-picker -> null +1ms
  vite:resolve 67ms  @ant-design/icons/es/icons/VerticalAlignTopOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/VerticalAlignTopOutlined.js +74ms
  vite:resolve 68ms  @ant-design/icons/es/icons/DoubleLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/DoubleLeftOutlined.js +1ms
  vite:resolve 68ms  array-tree-filter -> C:/Project/tmp/vite-x6/node_modules/array-tree-filter/lib/index.js +0ms
  vite:resolve 68ms  rc-tree/es/utils/treeUtil -> C:/Project/tmp/vite-x6/node_modules/rc-tree/es/utils/treeUtil.js +0ms
  vite:resolve 68ms  rc-table/es/Table -> C:/Project/tmp/vite-x6/node_modules/rc-table/es/Table.js +0ms
  vite:resolve 69ms  rc-picker -> C:/Project/tmp/vite-x6/node_modules/rc-picker/es/index.js +1ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/ExclamationCircleOutlined -> null +78ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/CloseCircleOutlined -> null +0ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/CheckCircleOutlined -> null +0ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/ExclamationCircleFilled -> null +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/InfoCircleOutlined -> null +1ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/ArrowLeftOutlined -> null +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/DownOutlined -> null +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/UpOutlined -> null +0ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/CloseCircleFilled -> null +1ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/CheckCircleFilled -> null +0ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/ArrowRightOutlined -> null +0ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/WarningFilled -> null +1ms
  vite:resolve 4ms   rc-tooltip/es/placements -> null +0ms
  vite:resolve 12ms  @ant-design/icons-svg/es/asn/ExclamationCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js +23ms
  vite:resolve 12ms  @ant-design/icons-svg/es/asn/CloseCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CloseCircleOutlined.js +0ms
  vite:resolve 13ms  @ant-design/icons-svg/es/asn/CheckCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.js +1ms
  vite:resolve 13ms  @ant-design/icons-svg/es/asn/ExclamationCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js +0ms      
  vite:resolve 51ms  @ant-design/icons-svg/es/asn/InfoCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.js +38ms
  vite:resolve 51ms  @ant-design/icons-svg/es/asn/ArrowLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js +0ms
  vite:resolve 52ms  @ant-design/icons-svg/es/asn/DownOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js +1ms
  vite:resolve 53ms  @ant-design/icons-svg/es/asn/UpOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js +1ms
  vite:resolve 53ms  @ant-design/icons-svg/es/asn/CloseCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js +0ms
  vite:resolve 53ms  @ant-design/icons-svg/es/asn/CheckCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.js +0ms
  vite:resolve 54ms  @ant-design/icons-svg/es/asn/ArrowRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.js +1ms
  vite:resolve 54ms  @ant-design/icons-svg/es/asn/WarningFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/WarningFilled.js +0ms
  vite:resolve 55ms  rc-tooltip/es/placements -> C:/Project/tmp/vite-x6/node_modules/rc-tooltip/es/placements.js +1ms
  vite:resolve 4ms   rc-util/es/PortalWrapper -> null +60ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/PlusOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons-svg/es/asn/CheckOutlined -> null +1ms
  vite:resolve 5ms   @ant-design/icons/es/icons/RotateLeftOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/EllipsisOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/EyeInvisibleOutlined -> null +0ms
  vite:resolve 5ms   rc-field-form/es/FieldContext -> null +1ms
  vite:resolve 4ms   lodash/debounce -> null +0ms
  vite:resolve 4ms   @ant-design/icons/es/icons/InfoCircleFilled -> null +0ms
  vite:resolve 4ms   rc-table/es/hooks/useColumns -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/FileOutlined -> null +1ms
  vite:resolve 5ms   @ant-design/icons/es/icons/DoubleRightOutlined -> null +0ms
  vite:resolve 4ms   rc-util/es/raf -> null +0ms
  vite:resolve 31ms  rc-util/es/PortalWrapper -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/PortalWrapper.js +40ms
  vite:resolve 31ms  @ant-design/icons-svg/es/asn/PlusOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js +0ms
  vite:resolve 32ms  @ant-design/icons-svg/es/asn/CheckOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +1ms
  vite:resolve 33ms  @ant-design/icons/es/icons/RotateLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js +1ms
  vite:resolve 33ms  @ant-design/icons-svg/es/asn/EllipsisOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js +0ms
  vite:resolve 33ms  @ant-design/icons-svg/es/asn/EyeInvisibleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js +0ms
  vite:resolve 34ms  rc-field-form/es/FieldContext -> C:/Project/tmp/vite-x6/node_modules/rc-field-form/es/FieldContext.js +1ms
  vite:resolve 34ms  lodash/debounce -> C:/Project/tmp/vite-x6/node_modules/lodash/debounce.js +0ms
  vite:resolve 34ms  @ant-design/icons/es/icons/InfoCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js +0ms
  vite:resolve 35ms  rc-table/es/hooks/useColumns -> C:/Project/tmp/vite-x6/node_modules/rc-table/es/hooks/useColumns.js +1ms
  vite:resolve 35ms  @ant-design/icons/es/icons/FileOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/FileOutlined.js +0ms
  vite:resolve 36ms  @ant-design/icons/es/icons/DoubleRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/DoubleRightOutlined.js +1ms
  vite:resolve 36ms  rc-util/es/raf -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/raf.js +0ms
  vite:resolve 3ms   @ant-design/icons/es/icons/RotateRightOutlined -> null +53ms
  vite:resolve 3ms   rc-trigger -> null +0ms
  vite:resolve 4ms   rc-util/es/Dom/findDOMNode -> null +1ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/VerticalAlignTopOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/BarsOutlined -> null +1ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/LeftOutlined -> null +0ms
  vite:resolve 5ms   @ant-design/icons/es/icons/MinusSquareOutlined -> null +1ms
  vite:resolve 4ms   regenerator-runtime -> null +1ms
  vite:resolve 44ms  @ant-design/icons/es/icons/RotateRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js +64ms
  vite:resolve 45ms  rc-trigger -> C:/Project/tmp/vite-x6/node_modules/rc-trigger/es/index.js +1ms
  vite:resolve 45ms  rc-util/es/Dom/findDOMNode -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/findDOMNode.js +0ms
  vite:resolve 45ms  @ant-design/icons-svg/es/asn/VerticalAlignTopOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/VerticalAlignTopOutlined.js +0ms    
  vite:resolve 46ms  @ant-design/icons-svg/es/asn/BarsOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js +1ms
  vite:resolve 46ms  @ant-design/icons-svg/es/asn/LeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js +0ms
  vite:resolve 47ms  @ant-design/icons/es/icons/MinusSquareOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/MinusSquareOutlined.js +1ms
  vite:resolve 46ms  regenerator-runtime -> C:/Project/tmp/vite-x6/node_modules/regenerator-runtime/runtime.js +1s
  vite:resolve 1ms   @babel/runtime/helpers/esm/toArray -> null +52ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/InfoCircleFilled -> null +1ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/DoubleLeftOutlined -> null +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/DoubleRightOutlined -> null +1ms
  vite:resolve 2ms   @ant-design/icons/es/icons/ZoomInOutlined -> null +0ms
  vite:resolve 2ms   @ant-design/icons/es/icons/CalendarOutlined -> null +0ms
  vite:resolve 23ms  @babel/runtime/helpers/esm/toArray -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/toArray.js +31ms
  vite:resolve 23ms  @ant-design/icons-svg/es/asn/InfoCircleFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.js +0ms
  vite:resolve 24ms  @ant-design/icons-svg/es/asn/DoubleLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/DoubleLeftOutlined.js +1ms
  vite:resolve 24ms  @ant-design/icons-svg/es/asn/DoubleRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/DoubleRightOutlined.js +0ms
  vite:resolve 24ms  @ant-design/icons/es/icons/ZoomInOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ZoomInOutlined.js +0ms
  vite:resolve 24ms  @ant-design/icons/es/icons/CalendarOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CalendarOutlined.js +0ms
  vite:resolve 1ms   @ant-design/icons/es/icons/PlusSquareOutlined -> null +28ms
  vite:resolve 11ms  @ant-design/icons/es/icons/PlusSquareOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/PlusSquareOutlined.js +16ms
  vite:resolve 1ms   scroll-into-view-if-needed -> null +15ms
  vite:resolve 3ms   @ant-design/icons/es/icons/ZoomOutOutlined -> null +2ms
  vite:resolve 8ms   rc-util/es/utils/get -> null +6ms
  vite:resolve 8ms   @ant-design/icons/es/icons/ClockCircleOutlined -> null +0ms
  vite:resolve 9ms   rc-tree/es/util -> null +1ms
  vite:resolve 21ms  scroll-into-view-if-needed -> C:/Project/tmp/vite-x6/node_modules/scroll-into-view-if-needed/es/index.js +33ms
  vite:resolve 22ms  @ant-design/icons/es/icons/ZoomOutOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ZoomOutOutlined.js +1ms
  vite:resolve 22ms  rc-util/es/utils/get -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/utils/get.js +0ms
  vite:resolve 23ms  @ant-design/icons/es/icons/ClockCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.js +1ms
  vite:resolve 23ms  rc-tree/es/util -> C:/Project/tmp/vite-x6/node_modules/rc-tree/es/util.js +0ms
  vite:resolve 2ms   rc-util/es/Dom/dynamicCSS -> null +27ms
  vite:resolve 2ms   @ant-design/icons/es/icons/CaretDownFilled -> null +1ms
  vite:resolve 14ms  rc-util/es/Dom/dynamicCSS -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/dynamicCSS.js +19ms
  vite:resolve 15ms  @ant-design/icons/es/icons/CaretDownFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CaretDownFilled.js +1ms
  vite:resolve 2ms   rc-notification/es/useNotification -> null +19ms
  vite:resolve 2ms   copy-to-clipboard -> null +1ms
  vite:resolve 2ms   rc-util/es/utils/set -> null +0ms
  vite:resolve 1ms   compute-scroll-into-view -> null +0ms
  vite:resolve 20ms  rc-notification/es/useNotification -> C:/Project/tmp/vite-x6/node_modules/rc-notification/es/useNotification.js +25ms
  vite:resolve 21ms  copy-to-clipboard -> C:/Project/tmp/vite-x6/node_modules/copy-to-clipboard/index.js +1ms
  vite:resolve 21ms  rc-util/es/utils/set -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/utils/set.js +0ms
  vite:resolve 22ms  compute-scroll-into-view -> C:/Project/tmp/vite-x6/node_modules/compute-scroll-into-view/dist/index.module.js +1ms
  vite:resolve 2ms   rc-util/es/Dom/css -> null +26ms
  vite:resolve 2ms   @babel/runtime/helpers/esm/possibleConstructorReturn -> null +0ms
  vite:resolve 13ms  rc-util/es/Dom/css -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/css.js +16ms
  vite:resolve 13ms  @babel/runtime/helpers/esm/possibleConstructorReturn -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0ms      
  vite:resolve 1ms   @ant-design/icons/es/icons/SwapRightOutlined -> null +16ms
  vite:resolve 22ms  @ant-design/icons/es/icons/SwapRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.js +25ms
  vite:resolve 2ms   @babel/runtime/helpers/esm/getPrototypeOf -> null +27ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/MinusSquareOutlined -> null +1ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/CaretDownFilled -> null +0ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/FileOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/PlusSquareOutlined -> null +1ms
  vite:resolve 3ms   json2mq -> null +0ms
  vite:resolve 3ms   @ant-design/icons/es/icons/RedoOutlined -> null +0ms
  vite:resolve 3ms   @ant-design/icons/es/icons/FolderOpenOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/colors -> null +1ms
  vite:resolve 3ms   @ant-design/icons/es/icons/EditOutlined -> null +0ms
  vite:resolve 27ms  @babel/runtime/helpers/esm/getPrototypeOf -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +35ms
  vite:resolve 27ms  @ant-design/icons-svg/es/asn/MinusSquareOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/MinusSquareOutlined.js +0ms
  vite:resolve 28ms  @ant-design/icons-svg/es/asn/CaretDownFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.js +1ms
  vite:resolve 28ms  @ant-design/icons-svg/es/asn/FileOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/FileOutlined.js +0ms
  vite:resolve 28ms  @ant-design/icons-svg/es/asn/PlusSquareOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/PlusSquareOutlined.js +0ms
  vite:resolve 29ms  json2mq -> C:/Project/tmp/vite-x6/node_modules/json2mq/index.js +1ms
  vite:resolve 29ms  @ant-design/icons/es/icons/RedoOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/RedoOutlined.js +0ms
  vite:resolve 30ms  @ant-design/icons/es/icons/FolderOpenOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/FolderOpenOutlined.js +1ms
  vite:resolve 30ms  @ant-design/colors -> C:/Project/tmp/vite-x6/node_modules/@ant-design/colors/dist/index.esm.js +0ms
  vite:resolve 30ms  @ant-design/icons/es/icons/EditOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/EditOutlined.js +0ms
  vite:resolve 4ms   rc-progress -> null +37ms
  vite:resolve 3ms   rc-select/es/generate -> null +0ms
  vite:resolve 4ms   @ant-design/icons/es/icons/FolderOutlined -> null +1ms
  vite:resolve 34ms  rc-progress -> C:/Project/tmp/vite-x6/node_modules/rc-progress/es/index.js +42ms
  vite:resolve 35ms  rc-select/es/generate -> C:/Project/tmp/vite-x6/node_modules/rc-select/es/generate.js +1ms
  vite:resolve 36ms  @ant-design/icons/es/icons/FolderOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/FolderOutlined.js +1ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/CalendarOutlined -> null +38ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/ClockCircleOutlined -> null +0ms
  vite:resolve 2ms   string-convert/camel2hyphen -> null +1ms
  vite:resolve 9ms   @ant-design/icons-svg/es/asn/CalendarOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CalendarOutlined.js +14ms
  vite:resolve 9ms   @ant-design/icons-svg/es/asn/ClockCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.js +0ms
  vite:resolve 9ms   string-convert/camel2hyphen -> C:/Project/tmp/vite-x6/node_modules/string-convert/camel2hyphen.js +267ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/ZoomOutOutlined -> null +15ms
  vite:resolve 3ms   mini-store -> null +1ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/RotateLeftOutlined -> null +0ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/RotateRightOutlined -> null +1ms
  vite:resolve 4ms   @ant-design/icons-svg/es/asn/ZoomInOutlined -> null +0ms
  vite:resolve 5ms   rc-select/es/utils/valueUtil -> null +1ms
  vite:resolve 4ms   rc-util/es/Dom/contains -> null +0ms
  vite:resolve 4ms   @ant-design/icons/es/icons/CopyOutlined -> null +0ms
  vite:resolve 5ms   shallowequal -> null +1ms
  vite:resolve 4ms   @ctrl/tinycolor -> null +0ms
  vite:resolve 27ms  @ant-design/icons-svg/es/asn/ZoomOutOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ZoomOutOutlined.js +36ms
  vite:resolve 28ms  mini-store -> C:/Project/tmp/vite-x6/node_modules/mini-store/esm/index.js +1ms
  vite:resolve 28ms  @ant-design/icons-svg/es/asn/RotateLeftOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/RotateLeftOutlined.js +0ms
  vite:resolve 29ms  @ant-design/icons-svg/es/asn/RotateRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/RotateRightOutlined.js +1ms
  vite:resolve 29ms  @ant-design/icons-svg/es/asn/ZoomInOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/ZoomInOutlined.js +0ms
  vite:resolve 30ms  rc-select/es/utils/valueUtil -> C:/Project/tmp/vite-x6/node_modules/rc-select/es/utils/valueUtil.js +1ms
  vite:resolve 30ms  rc-util/es/Dom/contains -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/contains.js +0ms
  vite:resolve 31ms  @ant-design/icons/es/icons/CopyOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CopyOutlined.js +1ms
  vite:resolve 31ms  shallowequal -> C:/Project/tmp/vite-x6/node_modules/shallowequal/index.js +0ms
  vite:resolve 31ms  @ctrl/tinycolor -> C:/Project/tmp/vite-x6/node_modules/@ctrl/tinycolor/dist/module/public_api.js +0ms
  vite:resolve 0ms   @ant-design/icons-svg/es/asn/SwapRightOutlined -> null +34ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/SwapRightOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.js +5ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/FolderOpenOutlined -> null +6ms
  vite:resolve 2ms   @ant-design/icons/es/icons/CaretDownOutlined -> null +1ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/RedoOutlined -> null +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/FolderOutlined -> null +0ms
  vite:resolve 3ms   rc-util/es/Dom/isVisible -> null +1ms
  vite:resolve 2ms   resize-observer-polyfill -> null +0ms
  vite:resolve 2ms   rc-util/es/isMobile -> null +0ms
  vite:resolve 32ms  @ant-design/icons-svg/es/asn/FolderOpenOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/FolderOpenOutlined.js +38ms
  vite:resolve 32ms  @ant-design/icons/es/icons/CaretDownOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.js +0ms
  vite:resolve 33ms  @ant-design/icons-svg/es/asn/RedoOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.js +1ms
  vite:resolve 33ms  @ant-design/icons-svg/es/asn/FolderOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/FolderOutlined.js +0ms
  vite:resolve 33ms  rc-util/es/Dom/isVisible -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Dom/isVisible.js +0ms
  vite:resolve 34ms  resize-observer-polyfill -> C:/Project/tmp/vite-x6/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1ms
  vite:resolve 35ms  rc-util/es/isMobile -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/isMobile.js +1ms
  vite:resolve 2ms   @ant-design/icons/es/icons/QuestionCircleOutlined -> null +43ms
  vite:resolve 2ms   @ant-design/icons/es/icons/PaperClipOutlined -> null +0ms
  vite:resolve 2ms   rc-util/es/pickAttrs -> null +0ms
  vite:resolve 3ms   @ant-design/icons/es/icons/CaretUpOutlined -> null +1ms
  vite:resolve 2ms   rc-tree/es/utils/conductUtil -> null +0ms
  vite:resolve 2ms   toggle-selection -> null +0ms
  vite:resolve 19ms  @ant-design/icons/es/icons/QuestionCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js +28ms
  vite:resolve 20ms  @ant-design/icons/es/icons/PaperClipOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.js +1ms
  vite:resolve 40ms  rc-util/es/pickAttrs -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/pickAttrs.js +20ms
  vite:resolve 41ms  @ant-design/icons/es/icons/CaretUpOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/CaretUpOutlined.js +1ms
  vite:resolve 41ms  rc-tree/es/utils/conductUtil -> C:/Project/tmp/vite-x6/node_modules/rc-tree/es/utils/conductUtil.js +0ms
  vite:resolve 41ms  toggle-selection -> C:/Project/tmp/vite-x6/node_modules/toggle-selection/index.js +136ms
  vite:resolve 0ms   @ant-design/icons-svg/es/asn/EditOutlined -> null +46ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/CopyOutlined -> null +1ms
  vite:resolve 1ms   @ant-design/icons/es/icons/FilterFilled -> null +0ms
  vite:resolve 1ms   rc-select/es/interface/generator -> null +1ms
  vite:resolve 2ms   @ant-design/icons/es/icons/PictureTwoTone -> null +0ms
  vite:resolve 17ms  @ant-design/icons-svg/es/asn/EditOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.js +24ms
  vite:resolve 17ms  @ant-design/icons-svg/es/asn/CopyOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.js +0ms
  vite:resolve 18ms  @ant-design/icons/es/icons/FilterFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/FilterFilled.js +1ms
  vite:resolve 18ms  rc-select/es/interface/generator -> C:/Project/tmp/vite-x6/node_modules/rc-select/es/interface/generator.js +0ms
  vite:resolve 18ms  @ant-design/icons/es/icons/PictureTwoTone -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/PictureTwoTone.js +0ms
  vite:resolve 1ms   @ant-design/icons/es/icons/FileTwoTone -> null +47ms
  vite:resolve 14ms  @ant-design/icons/es/icons/FileTwoTone -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/FileTwoTone.js +42ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/QuestionCircleOutlined -> null +16ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/CaretUpOutlined -> null +1ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/CaretDownOutlined -> null +1ms
  vite:resolve 6ms   @ant-design/icons-svg/es/asn/QuestionCircleOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js +10ms
  vite:resolve 6ms   @ant-design/icons-svg/es/asn/CaretUpOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CaretUpOutlined.js +0ms
  vite:resolve 6ms   @ant-design/icons-svg/es/asn/CaretDownOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.js +0ms
  vite:resolve 2ms   rc-virtual-list -> null +9ms
  vite:resolve 2ms   hoist-non-react-statics -> null +1ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/FilterFilled -> null +0ms
  vite:resolve 2ms   @babel/runtime/helpers/esm/asyncToGenerator -> null +0ms
  vite:resolve 20ms  rc-virtual-list -> C:/Project/tmp/vite-x6/node_modules/rc-virtual-list/es/index.js +26ms
  vite:resolve 22ms  hoist-non-react-statics -> C:/Project/tmp/vite-x6/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2ms
  vite:resolve 22ms  @ant-design/icons-svg/es/asn/FilterFilled -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/FilterFilled.js +0ms
  vite:resolve 22ms  @babel/runtime/helpers/esm/asyncToGenerator -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/FileTwoTone -> null +32ms
  vite:resolve 2ms   @ant-design/icons-svg/es/asn/PaperClipOutlined -> null +0ms
  vite:resolve 2ms   @babel/runtime/helpers/esm/get -> null +0ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/PictureTwoTone -> null +1ms
  vite:resolve 30ms  @ant-design/icons-svg/es/asn/FileTwoTone -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.js +39ms
  vite:resolve 31ms  @ant-design/icons-svg/es/asn/PaperClipOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.js +1ms
  vite:resolve 31ms  @babel/runtime/helpers/esm/get -> C:/Project/tmp/vite-x6/node_modules/@babel/runtime/helpers/esm/get.js +0ms
  vite:resolve 31ms  @ant-design/icons-svg/es/asn/PictureTwoTone -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.js +0ms
  vite:resolve 32ms  react-is -> C:/Project/tmp/vite-x6/node_modules/react-is/index.js +146ms
  vite:resolve 2ms   @ant-design/icons/es/icons/EnterOutlined -> null +40ms
  vite:resolve 14ms  @ant-design/icons/es/icons/EnterOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/EnterOutlined.js +23ms
  vite:resolve 3ms   warning -> null +29ms
  vite:resolve 11ms  warning -> C:/Project/tmp/vite-x6/node_modules/warning/warning.js +26ms
  vite:resolve 1ms   async-validator -> null +14ms
  vite:resolve 1ms   rc-util/es/Portal -> null +0ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/EnterOutlined -> null +0ms
  vite:resolve 19ms  async-validator -> C:/Project/tmp/vite-x6/node_modules/async-validator/dist-web/index.js +23ms
  vite:resolve 19ms  rc-util/es/Portal -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/Portal.js +0ms
  vite:resolve 19ms  @ant-design/icons-svg/es/asn/EnterOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/EnterOutlined.js +0ms
  vite:resolve 1ms   @ant-design/icons/es/icons/DeleteOutlined -> null +60ms
  vite:resolve 14ms  @ant-design/icons/es/icons/DeleteOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/DeleteOutlined.js +54ms
  vite:resolve 0ms   @ant-design/icons/es/icons/DownloadOutlined -> null +18ms
  vite:resolve 7ms   @ant-design/icons/es/icons/DownloadOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.js +11ms
  vite:resolve 0ms   rc-util/es/createChainedFunction -> null +12ms
  vite:resolve 5ms   rc-util/es/createChainedFunction -> C:/Project/tmp/vite-x6/node_modules/rc-util/es/createChainedFunction.js +11ms
  vite:resolve 0ms   @ant-design/icons-svg/es/asn/DeleteOutlined -> null +10ms
  vite:resolve 1ms   @ant-design/icons-svg/es/asn/DownloadOutlined -> null +1ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/DeleteOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.js +8ms
  vite:resolve 3ms   @ant-design/icons-svg/es/asn/DownloadOutlined -> C:/Project/tmp/vite-x6/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js +0ms
  vite:resolve 0ms   rc-overflow -> null +9ms
  vite:resolve 3ms   rc-overflow -> C:/Project/tmp/vite-x6/node_modules/rc-overflow/es/index.js +10ms
  vite:resolve 0ms   rc-align -> null +23ms
  vite:resolve 5ms   rc-align -> C:/Project/tmp/vite-x6/node_modules/rc-align/es/index.js +24ms
  vite:resolve 0ms   dom-align -> null +25ms
  vite:resolve 2ms   dom-align -> C:/Project/tmp/vite-x6/node_modules/dom-align/dist-web/index.js +22ms
  vite:deps deps bundled in 2055ms +0ms
Port 3000 is in use, trying another one...
  vite:deps Hash is consistent. Skipping. Use --force to override. +12ms

  vite v2.3.2 dev server running at:

  > Local: http://localhost:3001/
  > Network: use `--host` to expose

  ready in 2463ms.

Before submitting the issue, please make sure you do the following

Ronbb commented 3 years ago

vite 2.2.4 is ok. 😂

jtsang4 commented 3 years ago

Encounter the same problem, this is my repo to reproduce it: https://github.com/wtzeng1/graph-editing-playground/tree/vite-issue

git checkout vite-issue

lerna bootstrap

cd packages/x6

yarn dev

Downgrade to vite@2.2.4 solve this problem temporarily.

ygj6 commented 3 years ago

It seems that the esbuild upgrade caused this problem. I have tried to downgrade esbuild to ^0.9.3 in vite, and can also solve this problem. Here is another similar issue: https://github.com/vitejs/vite/issues/3399

Ronbb commented 3 years ago

vite 2.3.7 not work

patak-dev commented 3 years ago

@Ronbb #3718 will be released as part of vite 2.3.8

Ronbb commented 3 years ago

@patak-js

Bug not fixed with the same error.

% yarn why vite
└─ @cosmical/web@workspace:packages/web
   └─ vite@npm:2.3.8 (via npm:^2.3.8)
% yarn why esbuild
└─ vite@npm:2.3.8
   └─ esbuild@npm:0.12.9 (via npm:^0.12.8)
mdugue commented 3 years ago

@Ronbb were you successfull working around that problem?

Ronbb commented 3 years ago

@mdugue not yet, sorry

PuffMeow commented 3 years ago

I met the same problem, the version of vite 2.4.1

PuffMeow commented 3 years ago

vite 2.2.4 is ok. 😂

I can't solve this same problem when I use vite 2.2.4

Ronbb commented 3 years ago

vite 2.2.4 is ok. 😂

I can't solve this same problem when I use vite 2.2.4

Check the version of esbuild:

yarn why esbuild
xinzi1990 commented 3 years ago

有解决的方案了吗?各位大佬

Ronbb commented 3 years ago

有解决的方案了吗?各位大佬

@xinzi1990

目前只能降级到2.2.4

Only downgrade to 2.2.4

Ronbb commented 3 years ago

It seems a bug from yarn2 pnp and @yarnpkg/esbuild-plugin-pnp. Just don't use vite with yarn2 pnp.

From https://github.com/evanw/esbuild/issues/1488

BARMPlus commented 3 years ago

vite.config.js

resolve: {
   alias: [
      {
        find: 'antd/lib',
        replacement: 'antd/es',
      },
      {
        find: '@antv/x6',
        replacement: '@antv/x6/dist/x6.js',
      },
  ]
}

Adding such a configuration solves this problem locally

losetime commented 2 years ago

thank you @BARMPlus

If you need to use @antv/x6-vue-shape

resolve: {
   alias: [
     {
        find: '@antv/x6',
        replacement: '@antv/x6/lib',
      },
     {
        find: '@antv/x6-vue-shape',
        replacement: '@antv/x6-vue-shape/lib',
      },
  ]
}
mmrxia commented 2 years ago

can also downgrade to 2.2.4。

"resolutions": {
    "vite": "2.2.4"
},

注: 如果遇到编译报错,提示找不到printUrls方法,可以注释掉@builder_vite-service包中的devServer.printUrls();

prc333 commented 2 years ago

thank you @BARMPlus

If you need to use @antv/x6-vue-shape

resolve: {
   alias: [
     {
        find: '@antv/x6',
        replacement: '@antv/x6/lib',
      },
     {
        find: '@antv/x6-vue-shape',
        replacement: '@antv/x6-vue-shape/lib',
      },
  ]
}

‘replacement: '@antv/x6/lib' not work, must be 'replacement: '@antv/x6/dist/x6.js'

lulei90 commented 2 years ago

thank you @BARMPlus

If you need to use @antv/x6-vue-shape

resolve: {
   alias: [
     {
        find: '@antv/x6',
        replacement: '@antv/x6/lib',
      },
     {
        find: '@antv/x6-vue-shape',
        replacement: '@antv/x6-vue-shape/lib',
      },
  ]
}

The following information is prompted when I use this configuration image

Niputi commented 2 years ago

@lulei90 please provide a reproduction for your @antv/x6-vue-shape problem

bluwy commented 2 years ago

I can reproduce the issue with the zip file repro in Vite 2.8.6. But based on https://github.com/vitejs/vite/issues/3413#issuecomment-908867958, it may also be an issue with antv incorrectly publishing their packages. ESM files must be using .mjs extensions.

gavinwyf commented 2 years ago

2.8.4 not work. vite@2.8.4 esbuild@0.14.23

Noemi- commented 2 years ago

vite.config.js

resolve: {
   alias: [
      {
        find: 'antd/lib',
        replacement: 'antd/es',
      },
      {
        find: '@antv/x6',
        replacement: '@antv/x6/dist/x6.js',
      },
  ]
}

Adding such a configuration solves this problem locally

for me, this only work in dev mode. When I run production mode(npm run build, npm run preview) in vite, the registered vue node won't show.

image

vite@2.7.13 vue@3.2.31 x6@1.30.1 x6-vue-shape@1.3.1

losetime commented 2 years ago

@Noemi- production environment you need to delete this configuration

taomas commented 2 years ago

请问这个问题现在解决了吗,使用 @antv/x6-vue-shape 后,同样 dev 模式下展示正常,但是vite preview 或者 vite build 时,注册的 vue 节点无法展示。

dev模式下

image

preview模式下

image
taomas commented 2 years ago

找到原因了。

通过 render 方法渲染的 vue 组件,可以正常显示,但是通过 template 渲染的 vue 组件,build 之后不会正常显示。

例子:

// FlowNode.tsx文件

import '@antv/x6-vue-shape';
import FlowNode from './FlowNode.vue';

export const getFlowNode = (data = { name: '示例组件' }) => {
  return {
    shape: 'vue-shape',
    x: 400,
    y: 48,
    width: 180,
    height: 40,
    component: {
     // build后preiview,可被正常渲染
      render: () => {
        return <FlowNode name={data.name} />;
      },
     // 使用template则不能被正常渲染
      // template: `<FlowNode :name="name"></FlowNode>`,
      // data() {
      //   return {
      //     name: '示例组件',
      //     ...data,
      //   };
      // },
      // components: {
      //   FlowNode,
      // },
    },
  };
};

相关 vite.config.ts 的 alias 配置

resolve: {
  alias: [
    {
      find: '@',
      replacement: path.resolve(__dirname, './src'),
    },
    {
      find: '@antv/x6',
      replacement: '@antv/x6/dist/x6.js',
    },
    {
      find: '@antv/x6-vue-shape',
      replacement: '@antv/x6-vue-shape/lib',
    },
  ],
}
humbinal commented 2 years ago

使用render和alias配合彻底解决了这个问题,dev和build后都可用了,建议各位x6项目的大神在x6的vue-shape部分官方文档中说明一下,否则这个问题能把新手搞自闭了,而且这个缺陷修复方案还在vite仓库里~

另外非tsx在vue3中注册的写法实例如下:

import { createVNode } from "vue";
import Count from "./components/Count";
...
    // 方式1:注册 vue component
    Graph.registerVueComponent(
      "count",
      {
        render: ()=>{
         return createVNode(Count);
        }
      },
      true
    );

    // 方式2:注册 vue component
    Graph.registerNode("my-count", {
      inherit: "vue-shape",
      x: 200,
      y: 150,
      width: 150,
      height: 100,
      component: {
        render: ()=>{
         return createVNode(Count);
        }
      },
    });

另外,修改前的完整代码为官方示例: https://codesandbox.io/s/vue-shape-8ciig

xinzi1990 commented 2 years ago

使用render和alias配合彻底解决了这个问题,dev和build后都可用了,建议各位x6项目的大神在x6的vue-shape部分官方文档中说明一下,否则这个问题能把新手搞自闭了,而且这个缺陷修复方案还在vite仓库里~

另外非tsx在vue3中注册的写法实例如下:

import { createVNode } from "vue";
import Count from "./components/Count";
...
    // 方式1:注册 vue component
    Graph.registerVueComponent(
      "count",
      {
        render: ()=>{
         return createVNode(Count);
        }
      },
      true
    );

    // 方式2:注册 vue component
    Graph.registerNode("my-count", {
      inherit: "vue-shape",
      x: 200,
      y: 150,
      width: 150,
      height: 100,
      component: {
        render: ()=>{
         return createVNode(Count);
        }
      },
    });

另外,修改前的完整代码为官方示例: https://codesandbox.io/s/vue-shape-8ciig

谢谢老哥,我也遇到的同样的问题,打包之后会有报错~用了render之后就好了

xinzi1990 commented 2 years ago

找到原因了。

通过 render 方法渲染的 vue 组件,可以正常显示,但是通过 template 渲染的 vue 组件,build 之后不会正常显示。

例子:

// FlowNode.tsx文件

import '@antv/x6-vue-shape';
import FlowNode from './FlowNode.vue';

export const getFlowNode = (data = { name: '示例组件' }) => {
  return {
    shape: 'vue-shape',
    x: 400,
    y: 48,
    width: 180,
    height: 40,
    component: {
     // build后preiview,可被正常渲染
      render: () => {
        return <FlowNode name={data.name} />;
      },
     // 使用template则不能被正常渲染
      // template: `<FlowNode :name="name"></FlowNode>`,
      // data() {
      //   return {
      //     name: '示例组件',
      //     ...data,
      //   };
      // },
      // components: {
      //   FlowNode,
      // },
    },
  };
};

相关 vite.config.ts 的 alias 配置

resolve: {
  alias: [
    {
      find: '@',
      replacement: path.resolve(__dirname, './src'),
    },
    {
      find: '@antv/x6',
      replacement: '@antv/x6/dist/x6.js',
    },
    {
      find: '@antv/x6-vue-shape',
      replacement: '@antv/x6-vue-shape/lib',
    },
  ],
}

我想请教下,为什么template的形式不可以,render的形式可以呢?

Fnxxxxo commented 2 years ago

找到原因了。 通过 render 方法渲染的 vue 组件,可以正常显示,但是通过 template 渲染的 vue 组件,build 之后不会正常显示。 例子:

// FlowNode.tsx文件

import '@antv/x6-vue-shape';
import FlowNode from './FlowNode.vue';

export const getFlowNode = (data = { name: '示例组件' }) => {
  return {
    shape: 'vue-shape',
    x: 400,
    y: 48,
    width: 180,
    height: 40,
    component: {
     // build后preiview,可被正常渲染
      render: () => {
        return <FlowNode name={data.name} />;
      },
     // 使用template则不能被正常渲染
      // template: `<FlowNode :name="name"></FlowNode>`,
      // data() {
      //   return {
      //     name: '示例组件',
      //     ...data,
      //   };
      // },
      // components: {
      //   FlowNode,
      // },
    },
  };
};

相关 vite.config.ts 的 alias 配置

resolve: {
  alias: [
    {
      find: '@',
      replacement: path.resolve(__dirname, './src'),
    },
    {
      find: '@antv/x6',
      replacement: '@antv/x6/dist/x6.js',
    },
    {
      find: '@antv/x6-vue-shape',
      replacement: '@antv/x6-vue-shape/lib',
    },
  ],
}

我想请教下,为什么template的形式不可以,render的形式可以呢?

template最终会构建生成render,vue.runtime只认render,直接给template无法渲染。

Fnxxxxo commented 2 years ago
    {
      find: '@antv/x6',
      replacement: '@antv/x6/dist/x6.js',
    },

这不是一个好办法。把"@antv/x6"的解析路径改到umd包,摇树就拉了。另外x6的高级功能只能通过“@antv/x6/es/registry/tool/”和“@antv/x6/es/view”引用,改路径导致拼接后解析报错,意味着自定义视图和自定义工具之类的定制修改都用不了。目前还没有找到办法绕过

pengxiaotian commented 2 years ago

使用 template 需要启用 运行时编译

whitehole-Z commented 2 years ago

请问怎么启用呢

lulei90 commented 2 years ago

单独使用 @antv/x6时不会报错 搭配使用@antv/x6-vue-shape包时会报此错误 Cannot read property 'ToolItem' of undefined 原因貌似是预构建的问题,不需要使用resolve调整引入包类型,只用单独把@antv/x6-vue-shape排除在预构建配置中就正常了 大家可以参考如下配置:

 optimizeDeps: {
    exclude: ['@antv/x6-vue-shape'],
  },

对应vite版本为2.9.13

miniliupeng commented 2 years ago

我的项目是 react、@antv/x6-react-shape,上述解决办法除了降级2.2.4,都不行,

oyal commented 2 years ago

单独使用 @antv/x6时不会报错 搭配使用@antv/x6-vue-shape包时会报此错误 Cannot read property 'ToolItem' of undefined 原因貌似是预构建的问题,不需要使用resolve调整引入包类型,只用单独把@antv/x6-vue-shape排除在预构建配置中就正常了 大家可以参考如下配置:

 optimizeDeps: {
    exclude: ['@antv/x6-vue-shape'],
  },

对应vite版本为2.9.13

我使用这个配置会报错,vite 3.0.0

ReferenceError: exports is not defined
ZHUYUANWEI commented 2 years ago

在"vite": "^3.0.7"版本中这个配置正常,可以解决 Cannot read property 'ToolItem' of undefined 问题

image

lulei90 commented 2 years ago

单独使用 @antv/x6时不会报错 搭配使用@antv/x6-vue-shape包时会报此错误 Cannot read property 'ToolItem' of undefined 原因貌似是预构建的问题,不需要使用resolve调整引入包类型,只用单独把@antv/x6-vue-shape排除在预构建配置中就正常了 大家可以参考如下配置:

 optimizeDeps: {
    exclude: ['@antv/x6-vue-shape'],
  },

对应vite版本为2.9.13

我使用这个配置会报错,vite 3.0.0

ReferenceError: exports is not defined

修改vite配置前记得先清除.vite目录,否则无法生效

lulei90 commented 2 years ago

我的项目是 react、@antv/x6-react-shape,上述解决办法除了降级2.2.4,都不行,

修改vite配置前,有没先清除.vite目录

roojay520 commented 2 years ago

"vite": "^3.0.9" 目前使用 import { Button } from '@antv/x6/es/registry/tool/button.js'; 报错Uncaught TypeError: Cannot read properties of undefined (reading 'ToolItem')

解决方法:

// vite.config.js
  optimizeDeps: {
    exclude: ['@antv/x6'],
    include: ['mousetrap'],
  }

// custom-x6-button.js
import { Button } from '@antv/x6/es/registry/tool/button.js';
Button.define({ /*...*/})
695648896 commented 2 years ago

"vite": "^3.0.9" 目前使用 import { Button } from '@antv/x6/es/registry/tool/button.js'; 报错Uncaught TypeError: Cannot read properties of undefined (reading 'ToolItem')

解决方法:

// vite.config.js
  optimizeDeps: {
    exclude: ['@antv/x6'],
    include: ['mousetrap'],
  }

// custom-x6-button.js
import { Button } from '@antv/x6/es/registry/tool/button.js';
Button.define({ /*...*/})

@roojay520 (。・∀・)ノ゙嗨,打扰了,按照您的配置,报了另一个错 SyntaxError: The requested module '/node_modules/jquery/dist/jquery.js?v=772361b8' does not provide an export named 'default' (at index.ts:1:8)

你是否有遇到过呢,需要您的帮助

695648896 commented 2 years ago

https://user-images.githubusercontent.com/30861990/187613535-76c10024-e789-40ae-a422-5c9a4bd7a495.png 将x6内依赖的commonjs依赖给放进include 就可成功运行了

huiliangShen commented 2 years ago

我的项目是 react、@antv/x6-react-shape,上述解决办法除了降级2.2.4,都不行,

我这边可以了

"vite": "2.9.9"
"react": "18.1.0"
"@antv/x6": "^1.34.1",
"@antv/x6-react-shape": "^1.6.1"

现在配置完打包后preview也没问题了,配置如下

// vue.config.ts
optimizeDeps: {
    exclude: ['@antv/x6'],
    include: ['jquery', 'jquery-mousewheel', 'mousetrap']
}

打包后preview会报'Graph'关键字等的错误,可以试着加下

// vue.config.ts
build: {
    commonjsOptions: {
      ignoreTryCatch: false
    }
  }
sapphi-red commented 2 years ago

Closing as upgrading Vite to 3.2.0-beta.2+ fixed this. Maybe #10427 fixed this. I guess the root cause is related to https://github.com/evanw/esbuild/issues/2177#issuecomment-1096200814.

kaindy7633 commented 2 years ago

@sapphi-red 我在 react 18.2 下,升级 vite 到 3.2.2,确实解决了这个问题