- Notifications
You must be signed in to change notification settings - Fork70
Closed
Labels
kind: bugSomething isn't working properlyproblem: removed issue templateOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timetopic: TS Compiler API DocsRelated to the severely lacking TS Compiler API Docstopic: type-only / emit-less importsRelated to importing type-only files that will not be emitted
Description
What happens and why it is wrong
I get the error:
[!] (plugin rpt2) Error: failed to transpile 'packages/kit/src/runtime/navigation/index.ts'This is almost impossible to debug. Luckily I figured out I can donpx tsc and get the real error message:
src/runtime/navigation/types.ts:33:9 - error TS2304: Cannot find name 'Route'.33 route: Route; ~~~~~Found 1 error.Environment
Versions
npx: installed 1 in 1.212s npmPackages: rollup: ^2.32.0 => 2.32.0 rollup-plugin-typescript2: ^0.29.0 => 0.29.0 typescript: ^4.0.3 => 4.0.3Steps to reproduce
If you do not havepnpm then first runnpm install -g pnpm
git clone git@github.com:sveltejs/kit.gitcd kitgit reset --hard 2483ae3730a7219814cc654c03b0409a797de2eepnpm installpnpm -r buildAfter this, you can build just the relevant sub-project by runningcd packages/kit and thennpx rollup -c for faster debugging
Other context
Looks like it's coming from here:
rollup-plugin-typescript2/src/index.ts
Line 221 in6fb0e75
| this.error(red(`failed to transpile '${id}'`)); |
printDiagnostics right above looks to be being passed an empty array of diagnostics
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't working properlyproblem: removed issue templateOP removed the issue template without good causeproblem: staleIssue has not been responded to in some timetopic: TS Compiler API DocsRelated to the severely lacking TS Compiler API Docstopic: type-only / emit-less importsRelated to importing type-only files that will not be emitted