Skip to content

docs: fix svelte app unmount code #1673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2025
Merged

Conversation

hyunbinseo
Copy link
Contributor

Overview

Cannot find name 'app'. Did you mean 'App'? ts(2552)

https://svelte.dev/docs/svelte/imperative-component-api#unmount

import { mount, unmount } from 'svelte';
import App from './App.svelte';

const app = mount(App, { target: document.body });

// later
unmount(app, { outro: true });

Copy link

netlify bot commented May 15, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit c906117
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6832fc871804f3000813da9a
😎 Deploy Preview https://deploy-preview-1673--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@aklinker1 aklinker1 left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link

pkg-pr-new bot commented Jun 5, 2025

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1673

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1673

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1673

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1673

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1673

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1673

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1673

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1673

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1673

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1673

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1673

wxt

npm i https://pkg.pr.new/wxt@1673

commit: c906117

@aklinker1 aklinker1 merged commit e1f3d75 into wxt-dev:main Jun 5, 2025
16 checks passed
Copy link
Contributor

github-actions bot commented Jun 5, 2025

Thanks for helping make WXT better!

@hyunbinseo hyunbinseo deleted the patch-1 branch June 5, 2025 07:00
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.

3 participants