Skip to content

.svelte-kit tsconfig missing #1063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
joepio opened this issue May 20, 2025 · 2 comments
Closed

.svelte-kit tsconfig missing #1063

joepio opened this issue May 20, 2025 · 2 comments

Comments

@joepio
Copy link
Member

joepio commented May 20, 2025

EDIT: failing test caused by missing ./.svelte-kit/tsconfig.json

When running pnpm test-query sveltekit I keep getting this crash during Generating index that's coming from the get-tsconfig module:

Generating index...
 ELIFECYCLE  Command failed with exit code 1.
 file:///Users/joep/dev/github/atomicdata-dev/atomic-server/browser/node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.mjs:7
`+"	".repeat(t));var x;(function(e){e.DEFAULT={allowTrailingComma:!1}})(x||(x={}));function $e(e,t=[],i=x.DEFAULT){let n=null,o=[];const s=[];function r(u){Array.isArray(o)?o.push(u):n!==null&&(o[n]=u)}return l(r,"onValue"),ye(e,{onObjectBegin:l(()=>{const u={};r(u),s.push(o),o=u,n=null},"onObjectBegin"),onObjectProperty:l(u=>{n=u},"onObjectProperty"),onObjectEnd:l(()=>{o=s.pop()},"onObjectEnd"),onArrayBegin:l(()=>{const u=[];r(u),s.push(o),o=u,n=null},"onArrayBegin" ...
@joepio
Copy link
Member Author

joepio commented May 21, 2025

The tsconfig.json from the sveltekit-site repo has:

	"extends": "./.svelte-kit/tsconfig.json",

But that file / folder doesn't exist on my computer.

Apparently, SvelteKit creates this when you build a sveltekit project. But I suppose that hasn't happened on my machine.

Maybe the template.spec should have a build step or something that creates this .svelte-kit directory.

@joepio joepio changed the title ad-generate ontologies test failing locally .svelte-kit tsconfig missing May 21, 2025
joepio added a commit that referenced this issue May 21, 2025
@joepio
Copy link
Member Author

joepio commented May 21, 2025

Adding a pnpm svelte-kit sync step to the tests fixed the issues.

That's cleaner than adding a svelte-kit directory to the repo.

@joepio joepio closed this as completed May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant