Cannot find base config file "./.svelte-kit/tsconfig.json"
See original GitHub issueDescribe the bug
I got this ~error~ warning when running npm run build
in netlify:
[WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
I think vite build
requires ./.svelte-kit/tsconfig.json
, but ./.svelte-kit/tsconfig.json
is generated after the first npm run build
, CMIIW
Reproduction
Netlify build log sample: https://app.netlify.com/sites/salmonfit/deploys/6330b4585ff1820009b08c68 Repo: https://github.com/asendia/salmonfit/tree/5d32bea0c32889c25e5621306d3d47624f05877d
Logs
[WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
System Info
System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 634.39 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.0 - ~/.volta/tools/image/node/16.15.0/bin/node
Yarn: 1.22.18 - ~/.volta/tools/image/yarn/1.22.18/bin/yarn
npm: 8.8.0 - ~/.volta/tools/image/npm/8.8.0/bin/npm
Browsers:
Chrome: 105.0.5195.125
Firefox: 92.0.1
Safari: 16.0
npmPackages:
@sveltejs/adapter-netlify: ^1.0.0-next.78 => 1.0.0-next.78
@sveltejs/amp: ^1.0.0-next.1 => 1.0.0-next.1
@sveltejs/kit: next => 1.0.0-next.491
svelte: ^3.44.0 => 3.50.1
vite: ^3.1.0 => 3.1.3
Severity
annoyance
Additional Information
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6 (6 by maintainers)
Top Results From Across the Web
New Vite requirements gives warning when building ... - GitHub
[WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json] tsconfig.json:2:12: 2 │ "extends": ".
Read more >jsconfig path alias is not working Sveltekit - Stack Overflow
Try adding your paths to the svelte.config.js file in the root of your project ... import path from 'path'; ...
Read more >Configuration • Docs • SvelteKit
Your project's configuration lives in a svelte.config.js file at the root of your project. As well as SvelteKit, this config object is used...
Read more >@tsconfig/svelte - npm
A base TSConfig for working with Svelte. ... Start using @tsconfig/svelte in your project by running `npm i ... The tsconfig.json :.
Read more >Path aliases don't work in basic svelte-kit app : WEB-55303
Open the attached project, npm i; Open file: src/lib/header/Header.svelte ... from exclude from .svelte-kit/tsconfig.json; Try to import test1 again ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To everyone who wants to silence this: Prepend your script with
svelte-kit sync
- e.g."build": "svelte-kit sync && vite build
TIL. Thanks, I will put
svelte-kit sync
inpostinstall
for now