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
Why? Because when resolving an import, node looks for the first match, not the best match. Note: This is also the reason why "default" needs to be last.
Reporting a bug?
Type info cannot be loaded correctly when using moduleResolution "bundler" or "node16".
Expected behavior
Types should work.
Reproduction
Set
"moduleResolution": "bundler"
or"moduleResolution": "node16"
in the tsconfig file.Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
The
types
field needs to come first.https://github.com/intlify/bundle-tools/blob/a7125968dd70c82ee030d47fb28b5d1553d02576/packages/unplugin-vue-i18n/package.json#LL69-L73C7
Why? Because when resolving an import, node looks for the first match, not the best match. Note: This is also the reason why "default" needs to be last.
Validations
The text was updated successfully, but these errors were encountered: