nestjsx / crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
4.04k stars 533 forks source link

Failed to parse source map from... #761

Open yepes opened 2 years ago

yepes commented 2 years ago

Hi,

I'm trying the @nestjsx/crud-request for a client app. Was working great during the last few days but suddenly is not working anymore.

I tried to delete node_modules and reinstall everything. This is my package.json

package.json:

{
  "name": "reacttsatrtclient",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@nestjsx/crud-request": "^5.0.0-alpha.3",
    "@testing-library/jest-dom": "^5.16.1",
    "@testing-library/react": "^12.1.2",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "^27.4.0",
    "@types/node": "^16.11.19",
    "@types/react": "^17.0.38",
    "@types/react-dom": "^17.0.11",
    "@types/validator": "^13.7.1",
    "class-validator": "^0.13.2",
    "class-validator-formik": "^1.0.1",
    "formik": "^2.2.9",
    "openapi-typescript-codegen": "^0.13.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-query": "^3.34.8",
    "react-router-dom": "6",
    "react-scripts": "5.0.0",
    "react-table": "^7.7.0",
    "typescript": "^4.5.4",
    "web-vitals": "^2.1.3"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@types/react-table": "^7.7.9"
  }
}

This is the error I'm getting:

Error:

WARNING in ./node_modules/@nestjsx/crud-request/lib/exceptions/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/exceptions/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/exceptions/index.ts' @ ./node_modules/@nestjsx/crud-request/lib/index.js 11:9-32 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/exceptions/request-query.exception.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/exceptions/request-query.exception.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/exceptions/request-query.exception.ts' @ ./node_modules/@nestjsx/crud-request/lib/exceptions/index.js 11:9-45 @ ./node_modules/@nestjsx/crud-request/lib/index.js 11:9-32 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/index.ts' @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/request-query.builder.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.builder.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.builder.ts' @ ./node_modules/@nestjsx/crud-request/lib/index.js 13:9-43 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/request-query.parser.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.parser.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.parser.ts' @ ./node_modules/@nestjsx/crud-request/lib/index.js 15:9-42 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/request-query.validator.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.validator.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/request-query.validator.ts' @ ./node_modules/@nestjsx/crud-request/lib/request-query.builder.js 11:34-70 @ ./node_modules/@nestjsx/crud-request/lib/index.js 13:9-43 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/types/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/types/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/types/index.ts' @ ./node_modules/@nestjsx/crud-request/lib/index.js 17:9-27 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/crud-request/lib/types/request-query.types.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/types/request-query.types.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/crud-request/src/types/request-query.types.ts' @ ./node_modules/@nestjsx/crud-request/lib/types/index.js 11:9-41 @ ./node_modules/@nestjsx/crud-request/lib/index.js 17:9-27 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/util/lib/checks.util.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/util/src/checks.util.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/util/src/checks.util.ts' @ ./node_modules/@nestjsx/util/lib/index.js 11:9-33 @ ./node_modules/@nestjsx/crud-request/lib/request-query.builder.js 7:15-39 @ ./node_modules/@nestjsx/crud-request/lib/index.js 13:9-43 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/util/lib/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/util/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/util/src/index.ts' @ ./node_modules/@nestjsx/crud-request/lib/request-query.builder.js 7:15-39 @ ./node_modules/@nestjsx/crud-request/lib/index.js 13:9-43 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

WARNING in ./node_modules/@nestjsx/util/lib/obj.util.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/a/b/c/node_modules/@nestjsx/util/src/obj.util.ts' file: Error: ENOENT: no such file or directory, open '/Users/a/b/c/node_modules/@nestjsx/util/src/obj.util.ts' @ ./node_modules/@nestjsx/util/lib/index.js 13:9-30 @ ./node_modules/@nestjsx/crud-request/lib/request-query.builder.js 7:15-39 @ ./node_modules/@nestjsx/crud-request/lib/index.js 13:9-43 @ ./src/components/companies/CompaniesList.tsx 4:0-60 37:16-42 @ ./src/routes/index.tsx 15:0-66 137:38-51 @ ./src/App.tsx 8:0-33 35:37-46 @ ./src/index.tsx 7:0-24 15:37-40

yepes commented 2 years ago

Seems that starting the dev server with GENERATE_SOURCEMAP=falseworks, but anyway... anyone else is experiencing this issue?

"start": "GENERATE_SOURCEMAP=false react-scripts start",
Beerwerd commented 1 year ago

@yepes you are right, this env var helps to avoid annoying errors. I would add the comment, that moving this variable to the .env file also works:

...OTHER_REACT_VARS...
GENERATE_SOURCEMAP=false
techwizard210 commented 1 year ago

,,,,

ZAYEC77 commented 1 year ago

any updates?

FightingAnywhere commented 1 year ago

same issue, any updates?