Skip to content

fix: specify file extension when importing#680

Merged
dummdidumm merged 5 commits into
sveltejs:mainfrom
teemingc:fix-auto-process
May 25, 2026
Merged

fix: specify file extension when importing#680
dummdidumm merged 5 commits into
sveltejs:mainfrom
teemingc:fix-auto-process

Conversation

@teemingc

Copy link
Copy Markdown
Member

There's one path I forgot to add a file extension to when doing the TypeScript 6 upgrade and that seems to cause the tests to fail in sveltejs/kit#15896

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
  • This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
  • Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to run pnpm lint!)

Tests

  • Run the tests with npm test or pnpm test

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a change set otherwise lgtm

@teemingc

Copy link
Copy Markdown
Member Author

Ah forgot this repo uses changesets. It was another one of our repos which still has a manual publish step

@teemingc

Copy link
Copy Markdown
Member Author

Changeset added

@lyswhut

lyswhut commented May 25, 2026

Copy link
Copy Markdown

Same question:
[vite] Internal server error: Error while preprocessing xxx/App.svelte - Cannot find module 'xxx\node_modules\.pnpm\svelte-preprocess@6.0.4_les_a98292c40ab98f892fdbf57b83137403\node_modules\svelte-preprocess\dist\transformers\typescript' imported from xxx\node_modules\.pnpm\svelte-preprocess@6.0.4_les_a98292c40ab98f892fdbf57b83137403\node_modules\svelte-preprocess\dist\autoProcess.js

When can this be merged?

@kyoshino

Copy link
Copy Markdown

And why was the breaking change added in a patch release? I have never understood the Svelte team’s versioning strategy across the packages.

@Conduitry

Copy link
Copy Markdown
Member

And why was the breaking change added in a patch release? I have never understood the Svelte team’s versioning strategy across the packages.

It's called a bug, you clown.

@kyoshino

Copy link
Copy Markdown

I mean, TypeScript 6 support should not have been introduced in a patch release.

@dummdidumm dummdidumm merged commit 418c0f0 into sveltejs:main May 25, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request May 25, 2026
teemingc added a commit to sveltejs/kit that referenced this pull request May 29, 2026
Bumps `svelte-package`'s deps to support TypeScript 6. Also updates the
test fixtures to match TypeScript 6's output. Not sure if we want to
keep both TypeScript 5 and 6 expected output and add a matrix to CI 😓

This is the last step before we make TypeScript 6 the minimum in the
`version-3` branch

EDIT: requires merging
sveltejs/svelte-preprocess#680 first, then
releasing a new version and bumping `svelte-preprocess` to get the tests
passing.

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [ ] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [ ] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

5 participants