Skip to content

fix: explain removed $lib and $service-worker imports - #16635

Open
Nic-Polumeyv wants to merge 1 commit into
version-3from
removed-module-errors
Open

fix: explain removed $lib and $service-worker imports#16635
Nic-Polumeyv wants to merge 1 commit into
version-3from
removed-module-errors

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

closes #16628

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 3, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 2f2f0a1:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/2f2f0a10fc9d7ee0eaef853993c1e2a623ed9374

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16635

@changeset-bot

changeset-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2f2f0a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

const resolved = await this.resolve(id, importer, { ...options, skipSelf: true });
if (resolved) return resolved;

for (const { pattern, message } of removed_modules) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The resolveId handler throws the misleading "$lib has been removed" migration error for any unresolved $lib/... import even when the user has re-added a $lib alias (the workaround the message itself recommends), masking genuine missing-file/typo errors.

Fix on Vercel

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.

Unclear $lib error message

1 participant