DataV-Team / DataV-Vue3

WIP: DataV Vue3 + Vite + TypeScript
https://datav-vue3.jiaminghi.com/
MIT License
384 stars 50 forks source link

vite4.0 报错,涉及es。 #25

Open ijry opened 1 year ago

ijry commented 1 year ago

ERROR 12:27:46 AM [vite] Internal server error: Failed to resolve entry for package "@dataview/datav-vue3". The package may have incorrect main/module/exports specified in its package.json

改成import DataV from '@dataview/datav-vue3/es';后报另一个错: The requested module '/node_modules/.vite/deps/@dataview_datav-vue3_es.js?v=baca4c47' does not provide an export named 'default

YangCY1995 commented 1 year ago

vite2.9也遇到了这个问题QAQ

daidaihk commented 1 year ago

可以看看这个:http://t.csdn.cn/EuX68