Skip to content

[bug] @genType generates incorrect output #7444

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

Open
tx46 opened this issue May 8, 2025 · 0 comments
Open

[bug] @genType generates incorrect output #7444

tx46 opened this issue May 8, 2025 · 0 comments
Labels

Comments

@tx46
Copy link

tx46 commented May 8, 2025

I don't have a minimal repro as I only have a huge couple of files from production code

rescript.json has .res.js as suffix

if i put @genType on a function, a .gen.ts-file is generated that tries to import incorrectly:

import * as ModuleJS from Module.bs.js

i.e., it's outputting .bs.js despite suffix being set to .res.js in rescript.json

sorry for a rather lame report, im thinking it might be easy to debug given the .bs.js hardcoded(?) suffix. get back if you absolutely need a repro and i will try to extract it

@cknitt cknitt added the bug label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants