-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Describe the bug
Hi,
If I'm not mistaken since the new build changes introduced in PR #5332 I'm getting this error when building:
[WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
tsconfig.json:2:12:
2 │ "extends": "./.svelte-kit/tsconfig.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Now this is quite logical because the .svelte-kit folder is in my (and this repos) .gitignore. The folder (and the tsconfig.json file) does get generated after running once, but that isn't a solution since you'd generally build in a CI/CD pipeline.
I don't know if this is a problem or not, but thought it would be better to report it in any case.
Thanks for the amazing work you all have done! :)
Reproduction
My project where this is happening: link
Logs of a CI/CD step where you can see this: link
If you want to recreate it using my repo here are the steps:
- Clone my repo
- run
npm install - run
npm run build
Logs
Relevant part:
Step 7/9 : RUN npm run build
---> Running in bef9c63132b9
> personal-website@0.0.1 build
> vite build
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
tsconfig.json:2:12:
2 │ "extends": "./.svelte-kit/tsconfig.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~System Info
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.53
@sveltejs/adapter-static: ^1.0.0-next.34 => 1.0.0-next.34
@sveltejs/kit: next => 1.0.0-next.360
svelte: ^3.44.0 => 3.48.0
vite: ^2.9.13 => 2.9.13Severity
annoyance
Additional Information
My package.json file:
{
"name": "personal-website",
"version": "0.0.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"package": "svelte-kit package",
"preview": "vite preview",
"prepare": "svelte-kit sync",
"test": "playwright test",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
},
"devDependencies": {
"@playwright/test": "^1.22.2",
"@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-static": "^1.0.0-next.34",
"@sveltejs/kit": "next",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"bootstrap": "^5.1.3",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^4.0.0",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.7.0",
"sass": "^1.49.11",
"svelte": "^3.44.0",
"svelte-check": "^2.7.1",
"svelte-preprocess": "^4.10.5",
"tslib": "^2.3.1",
"typescript": "^4.7.2",
"vite": "^2.9.13"
},
"type": "module"
}
Dameck, GodGardensGuns, repsac-by, danbri, nklowns and 20 moreN-NeelPatelN-NeelPatel