We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moduleResolution: bundler
with "moduleResolution": "bundler" in tsconfig.json (which is the current CNA default), i don't get type information for getFormatter DateFormat options: see https://github.com/stefanprobst/issue-next-intl-types/blob/main/app/%5Blocale%5D/page.tsx#L42
"moduleResolution": "bundler"
tsconfig.json
getFormatter
it does seem to work fine with useFormatter: see https://github.com/stefanprobst/issue-next-intl-types/blob/main/app/%5Blocale%5D/page.tsx#L31
useFormatter
also, when setting "moduleResolution": "node" it does seem to work.
"moduleResolution": "node"
EDIT: seems to not be a problem for numberformat/listformat options.
https://github.com/stefanprobst/issue-next-intl-types
Steps to reproduce:
app/[locale]/page.tsx
get intellisense for allowed formatter options
The text was updated successfully, but these errors were encountered:
moduleResolution: 'Bundler'
Thank you for the great bug report! This will be fixed by #694
Sorry, something went wrong.
fix: Fix compatibility with moduleResolution: 'Bundler' (#694)
f7425a5
Fixes #690
Successfully merging a pull request may close this issue.
Description
with
"moduleResolution": "bundler"
intsconfig.json
(which is the current CNA default), i don't get type information forgetFormatter
DateFormat options: see https://github.com/stefanprobst/issue-next-intl-types/blob/main/app/%5Blocale%5D/page.tsx#L42it does seem to work fine with
useFormatter
: see https://github.com/stefanprobst/issue-next-intl-types/blob/main/app/%5Blocale%5D/page.tsx#L31also, when setting
"moduleResolution": "node"
it does seem to work.EDIT: seems to not be a problem for numberformat/listformat options.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://github.com/stefanprobst/issue-next-intl-types
Reproduction description
Steps to reproduce:
app/[locale]/page.tsx
in your editoruseFormatter
, the invalid dateFormat option is marked as an error, while it is not marked as an invalid option withgetFormatter
Expected behaviour
get intellisense for allowed formatter options
The text was updated successfully, but these errors were encountered: