Skip to content
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

Failed to parse source map #422

Open
braddi opened this issue Dec 19, 2022 · 0 comments
Open

Failed to parse source map #422

braddi opened this issue Dec 19, 2022 · 0 comments

Comments

@braddi
Copy link

braddi commented Dec 19, 2022

I have upgraded to CRA 5 and I'm getting this compilation error:

WARNING in ./node_modules/autolinker/dist/es2015/truncate/truncate-end.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '\node_modules\autolinker\src\truncate\truncate-end.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\autolinker\src\truncate\truncate-end.ts'

image

Somehow CRA keeps trying to find the map files in src folder instead of dist.

    "remarkable": {
      "version": "2.0.1",
      "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-2.0.1.tgz",
      "integrity": "sha512-YJyMcOH5lrR+kZdmB0aJJ4+93bEojRZ1HGDn9Eagu6ibg7aVZhc3OWbbShRid+Q5eAfsEqWxpe+g5W5nYNfNiA==",
      "requires": {
        "argparse": "^1.0.10",
        "autolinker": "^3.11.0"
      },
      "dependencies": {
        "autolinker": {
          "version": "3.16.2",
          "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-3.16.2.tgz",
          "integrity": "sha512-JiYl7j2Z19F9NdTmirENSUUIIL/9MytEWtmzhfmsKPCp9E+G35Y0UNCMoM9tFigxT59qSc8Ml2dlZXOCVTYwuA==",
          "requires": {
            "tslib": "^2.3.0"
          }
        },
        "tslib": {
          "version": "2.4.1",
          "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",
          "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="
        }
      }
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant