You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ant-design-vue
Pre-bundling them to speed up dev server page load...
(this will be run only when your dependencies have changed)
'indexof' is imported by indexof?commonjs-external, but could not be resolved – treating it as an external dependency
'resolveDirective' is imported from external module 'vue' but never used
[plugin:vite:imports] Failed to resolve import "indexof". Does the file exist?
/Desktop/demo/manage-web/node_modules/.vite/ant-design-vue.c99e5497.js:3:25
1 | import _vue, { Comment as Comment$2, Fragment, Text, isVNode, nextTick, defineComponent, inject, createVNode, reactive, provide, watch, cloneVNode, computed, ref, watchEffect, onBeforeUnmount, withDirectives, Transition as Transition$1, TransitionGroup as TransitionGroup$1, onMounted, createTextVNode, onBeforeUpdate, vShow, Teleport, getCurrentInstance, toRaw, toRef, toRefs, createApp, markRaw, onUnmounted } from 'vue';
2 | import { i as index_esm } from './common/index.esm.7c62bc5d.js';
3 | import require$$0 from 'indexof';
| ^
4 | import { CloseOutlined as CloseOutlined$3, ZoomInOutlined, ZoomOutOutlined, RotateRightOutlined, RotateLeftOutlined, LeftOutlined as LeftOutlined$3, RightOutlined as RightOutlined$3 } from '@ant-design/icons-vue';
5 |
Error: Failed to resolve import "indexof". Does the file exist?
at TransformContext.error (D:\Desktop\demo\manage-web\node_modules\vite\dist\node\chunks\dep-7bace6f3.js:59717:50)
at TransformContext.transform (D:\Desktop\demo\manage-web\node_modules\vite\dist\node\chunks\dep-7bace6f3.js:53118:30)
at async Object.transform (D:\Desktop\demo\manage-web\node_modules\vite\dist\node\chunks\dep-7bace6f3.js:59907:30)
at async transformRequest (D:\Desktop\demo\manage-web\node_modules\vite\dist\node\chunks\dep-7bace6f3.js:66142:29)
at async D:\Desktop\demo\manage-web\node_modules\vite\dist\node\chunks\dep-7bace6f3.js:66229:32
Click outside or fix the code to dismiss.
You can also disable this overlay with hmr: { overlay: false } in vite.config.js.
The text was updated successfully, but these errors were encountered:
Version
2.0.0-rc.7
Environment
Reproduction link
Steps to reproduce
启动就会包错
What is expected?
正常使用
What is actually happening?
The text was updated successfully, but these errors were encountered: