question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Can not read tsconfig.json

See original GitHub issue

Hi.

Error when trying to deploy with Now

Error: Error: Can not read tsconfig.json from /zeit/76c49dc
    at Object.prepareTypescriptEnvironment (/zeit/350a8cf112e00538/.build-utils/.builder/node_modules/@nuxtjs/now-builder/lib/typescript.js:20:19)

https://github.com/JHyeok/jaebook-client/tree/now-sh

source has tsconfig.json.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
danielroecommented, Jun 20, 2021

@wobsoriano Looks like you have a trailing comma in that JSON.

4reactions
attilapolgarcommented, Jun 25, 2020

@phischdev Make sure your tsconfig.json is valid (e.g. no comments), for me it fixed the issue. In my tsconfig.json I had a comment in the first line for some reason. I removed it and the build succeeded.

I hope it helps 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

214 - Stack Overflow
Parsing error: Cannot read file 'd:\test\testproject\tsconfig.app.eslint.json'.eslint One of the major issues I faced here because of the ...
Read more >
Parsing error: Cannot read file tsconfig.json, when it's ... - GitHub
Hi, I have nested subprojects, with individual esling and tsconfig configurations, which get parsed correctly from command line, but not ...
Read more >
ESLint complains about parsing error and file not matching ...
The project is located in a WSL2 environment. For example: \\wsl$\Ubuntu-20.04\home\<me>\projects\web. In tsconfig.json, I have these as well, ...
Read more >
Node.js – Parsing error: Cannot read file '…/tsconfig.json'.eslint
By default, the project s (in parserOptions ) are resolved relative to the current working directory. If you run eslint in a different...
Read more >
Documentation - What is a tsconfig.json - TypeScript
By invoking tsc with no input files, in which case the compiler searches for the tsconfig.json file starting in the current directory and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found