You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'. // ts
The documentation does mention setting "moduleResolution": "NodeNext" in the caveats section.
Reproduction
pnpm create svelte@latest
create-svelte version 5.1.1
┌ Welcome to SvelteKit!
│
◇ Where should we create your project?
│ [email protected]
│
◇ Which Svelte app template?
│ Library project
│
◇ Add type checking with TypeScript?
│ Yes, using TypeScript syntax
│
◇ Select additional options (use arrow keys/space bar)
│ none
│
└ Your project is ready!
…properties (#11029)
fixes#11023fixes#9552
This PR fixes the errors found in tsconfig.json when scaffolding a typescript library project then running pnpm check.
> Cannot write file '/src/lib/index.js' because it would overwrite input file.
This one is fixed by providing a index.ts file instead of .js in the example lib folder and adding noEmit to tsconfig
> Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
This one is fixed by adding the module: NodeNext to the library project tsconfig.json and jsconfig.json files
Also added moduleResolution: bundler to the app tsconfigs which is the recommended setting in TS 5.0+
---------
Co-authored-by: Simon H <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Out-of-the box, two errors occur in the
tsconfig.json
file.Reproduction
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: