dfinity / dfinity/sdk

unable to deploy using dfx new [motoko/sveltekit] - tsconfig.json in wrong spot

Open
#4,081 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
Rust
Stars
204
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I tried the following:

  1. dfx new hello [motoko/sveltkit]
  2. cd hello
  3. dfx start --clean --background
  4. dfx deploy

the tsconfig.json is in the project root directory. It should be in hello/src/hello_frontend/.svelte-kit/tsconfig.json

Meta

dfx --version:

0.24.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the documented dfx new motoko/sveltekit and dfx deploy commands, then inspect the generated tsconfig.json and src/helloprob_frontend/.svelte-kit/tsconfig.json paths. Trace the frontend template or build entry point that sets the TypeScript configuration location; done means the generated project finds .svelte-kit/tsconfig.json and dfx deploy completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, cli, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.