Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Rename messages/en.d.json.ts to messages/en.json.d.ts #1835

New issue

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

Closed
s-lukashenka-micoworks opened this issue Apr 9, 2025 · 1 comment
Closed
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@s-lukashenka-micoworks
Copy link

Is your feature request related to a problem? Please describe.

The file named as-is (messages/en.d.json.ts) is causing the following parse error with webpack:

./messages/en.d.json.ts
Module parse failed: Cannot parse JSON: Unexpected token '/', "// This fi"... is not valid JSON while parsing '// This file is auto-generated by next-i'
File was processed with these loaders:

Import trace for requested module:
./messages/en.d.json.ts

Describe the solution you'd like

Rename the generated type file from messages/en.d.json.ts to messages/en.json.d.ts

Describe alternatives you've considered

I am not sure if this is the only solution but it looks like a potential solution.

@s-lukashenka-micoworks s-lukashenka-micoworks added enhancement New feature or request unconfirmed Needs triage. labels Apr 9, 2025
@amannn
Copy link
Owner

amannn commented Apr 10, 2025

Renaming it to messages/en.json.d.ts won't work, that file is not picked up by TypeScript.

Not sure what is causing your import error, you can check the examples on the website to explore a working setup.

I'll move this to a discussion since it seems to be a usage question.

Repository owner locked and limited conversation to collaborators Apr 10, 2025
@amannn amannn converted this issue into discussion #1839 Apr 10, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants