vercel-builder: Error: Can not read tsconfig.json
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.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 20 (7 by maintainers)
Commits related to this issue
- nuxt/now-builder#245 — committed to stefanwimmer128/stefanwimmer128.eu by deleted user 4 years ago
- nuxt/now-builder#245 — committed to stefanwimmer128/stefanwimmer128.eu by deleted user 4 years ago
- fix: add support for UTF-16 LE encoded `tsconfig.json` (#354) closes #245 — committed to nuxt/vercel-builder by danielroe 4 years ago
@wobsoriano Looks like you have a trailing comma in that JSON.
@phischdev Make sure your
tsconfig.json
is valid (e.g. no comments), for me it fixed the issue. In mytsconfig.json
I had a comment in the first line for some reason. I removed it and the build succeeded.I hope it helps 😉
same error.
Don’t use this with Nuxt 3 - there is a much better, built-in solution for deploying to Vercel!
same here with nuxt 3 @danielroe