Skip to content

Failed to parse source maps #74

@jelhouss

Description

@jelhouss

Hi @willryan, thank you for your awesome work.

I have been using factory.ts since last year to generate fake data with Faker, with no issues.
However, as I am now using create-react-app v5, I came across warnings related to source maps not being available for factory.ts every time I compile my app.
Currently, they are shown as warnings in development mode obviously, but not sure if they could occur in production as well. I don't know.

The warnings follow this pattern: Failed to parse source map from (files under /src)

For CRA, I found this discussion. Apparently, a lot of folks are using libs that don't expose source maps, and CRA is complaining about that.

Using an env var for CRA like GENERATE_SOURCEMAP=false would eliminate those warnings (for all third parties actually, not just a specific target) however, I don't find it practical to use that. I'd like to enable source maps for factory.ts.

I can see in tsconfig.json that "sourceMap": true is commented under compilerOptions, is there any reason for that? Is that by choice?

My factory.ts version is 1.3.0, and I am using Node.js 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions