Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Cannot parse valid tsconfig that includes comments #35

Open
fourpastmidnight opened this issue Aug 4, 2021 · 0 comments · May be fixed by #38
Open

Cannot parse valid tsconfig that includes comments #35

fourpastmidnight opened this issue Aug 4, 2021 · 0 comments · May be fixed by #38

Comments

@fourpastmidnight
Copy link

I'm currently using Craco-Alias v3.0.1.

I had a very simple tsconfig file:

{
  "extends": "mybase.tsconfig.json" , // Not actual filename
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
        // I actually had a comment in the  file there, because I desire a different path, eventually...
        // and TypeScript supports comments in tsconfig files (JSONC, or JSON with Comments)
        // but Craco-Alias does not   :'(
        "@myscope/*": "./packages/myscope/*"
    }
  }
}

But as you can see from the comment in the file above, Craco-Alias does not support Json with Comments, even though that's technically what tsconfig files are. (As you can see when you do tsc --init—you get a file full of comments with a very basic configuration, and tsc happily consumes it.)

@fourpastmidnight fourpastmidnight changed the title Cannot parse valid tsconfig that includes "extends" property Cannot parse valid tsconfig that includes comments Aug 4, 2021
@rattrayalex rattrayalex linked a pull request Aug 23, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant