Skip to content

allowJs in TypeScript #559

@BAHAA-THE-KING

Description

@BAHAA-THE-KING

Checklist

  • I have searched for existing issues to avoid duplicates.
  • The bug is reproducible in the latest version of Paraglide JS.
  • I am willing to submit a pull request for this issue.

Describe the Bug

I am using ReactJS + Vite setup,
when running npx @inlang/paraglide-js@latest init its requiring me to set allowJs to true,
the problem is that I have multiple tsconfig files

Image

and the cli command just sees just the default one tsconfig.json, and ignores the references inside it

Image

so it forces me to change my configs in the default file and add the "allowJs" rule, although I added it already in the tsconfig.app.json.

What's the expected result?

The cli command should trace the config files to find the rule :)

Link to Minimal Reproducible Example

https://stackblitz.com/edit/vitejs-vite-wogmacyl?file=src%2FApp.tsx

Additional Information

I didn't try but will tsconfig.ts work ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions