Skip to content

Error Failed To Load Config In Creating New Project With TypeScript #14647

@fuji-184

Description

@fuji-184

Describe the bug

I created a new project using npx sv create, choosing the barebone template with TypeScript, Tailwind CSS, Tailwind Typography, Tailwind Forms, and the NPM package manager. Then I encountered this error when running npm run dev.

WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

failed to load config from D:\svelte\test\vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\svelte\test\node_modules\@jridgewell\gen-mapping\dist\gen-mapping.mjs' imported from D:\svelte\test\node_modules\@a
mpproject\remapping\dist\remapping.mjs

Reproduction

Edit : The link is updated, here is the detail video of what I did :

https://www.awesomescreenshot.com/video/34488783?key=26879d8f9a09ed0ca6041202fedb095c

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
    Memory: 12.50 GB / 19.80 GB
  Binaries:
    Node: 20.18.0 - D:\System\Node JS\node.EXE
    npm: 10.8.0 - D:\System\Node JS\npm.CMD
    pnpm: 9.12.2 - ~\AppData\Roaming\npm\pnpm.CMD
    bun: 1.1.30 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (127.0.2651.86)
  npmPackages:
    svelte: ^5.0.0 => 5.10.0

Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions