Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

577
Views
Angular Nx Nrwl: no se puede analizar tsconfig.base.json: PropertyNameExpected en JSON cuando se intenta crear una nueva biblioteca

estoy recibiendo este error

 Cannot parse tsconfig.base.json: PropertyNameExpected in JSON at position 891

cuando ejecuto nx g @nrwl\angular:lib libName en CLI

mi tsconfig.base.json

 { "compileOnSave": false, "compilerOptions": { "rootDir": ".", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "target": "es2015", "module": "esnext", "lib": ["es2017", "dom"], "skipLibCheck": true, "skipDefaultLibCheck": true, "baseUrl": ".", "paths": { "@admin-env/*": ["apps/admin/src/environments/*"], "@admin/*": ["apps/admin/src/app/*"], "@portal-env/*": ["apps/portal/src/environments/*"], "@portal/*": ["apps/portal/src/app/*"], } }, "exclude": ["node_modules", "tmp"] }

Cuando ejecuto, aparece el error Cannot parse tsconfig.base.json: PropertyNameExpected in JSON at position 891 .

Lo mismo sucede cuando trato de ejecutar npx nx g @nrwl/angular:lib libName o nx g @nrwl/angular:lib

Estoy usando VScode para escribir código y no hay advertencia (lint) de error en tsconfig.base.json

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Recibí este error cuando había una coma ',' al final de la lista de paths .

 "@portal/*": ["apps/portal/src/app/*"], <<< REMOVE this comma
over 4 years ago · Santiago Trujillo Report

0

Sí, esa es exactamente la solución: eliminar la coma: "rutas": { "@sokar/products":["libs/products/src/index.ts"],<<-- } ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!