`vue` cannot be imported in ESM
Version
3.2.18
Reproduction link
Steps to reproduce
After https://github.com/vuejs/vue-next/commit/570c955b4896db2e0deb46d3eb30bbc9eba7747b we now have a root-level index.mjs
. But it's not packaged as it needs to be added to files
array.The error is:
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/project/node_modules/vue/server-renderer' is not supported resolving ES modules imported from /project/dist/server/server.mjs
Did you mean to import vue/server-renderer/index.js?