ERR_PACKAGE_PATH_NOT_EXPORTED when using @intlify/vite-plugin-vue-i18n with @intlify/[email protected] #2138
Closed
4 tasks done
Labels
Status: Review Needed
Request for review comments
Reporting a bug?
Description:
After installing dependencies for @intlify/vite-plugin-vue-i18n, the application fails to start due to an Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined.
Investigation:
The issue stems from @intlify/[email protected] (installed via the next tag), which appears to have an invalid/missing exports field in its package.json.
The dependency tree shows @intlify/vite-plugin-vue-i18n relies on @intlify/shared@next, which resolves to the alpha version.
Steps to Reproduce:
Install @intlify/vite-plugin-vue-i18n.
Dependencies install @intlify/[email protected] (via next).
Run the application (e.g., via vite dev).
Error Log:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /node_modules/@intlify/shared/package.json
Possible Causes:
The alpha version of @intlify/shared (12.0.0-alpha.1) may have misconfigured exports in package.json.
Compatibility issues between @intlify/vite-plugin-vue-i18n and the alpha version of @intlify/shared.
Could the maintainers verify if the next tag should point to a stable version compatible with @intlify/vite-plugin-vue-i18n?
Is there a workaround (e.g., pinning @intlify/shared to a stable version) until this is resolved?
Expected behavior
Dependencies resolve correctly without package export errors.
Reproduction
none
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: