Skip to content
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

worked on 5.20.2, error on 5.20.4 (toggle_class" is not exported by "../node_modules/svelte/src/internal/client/index.js) #15391

Open
i18nsite opened this issue Feb 26, 2025 · 1 comment
Labels
awaiting submitter needs a reproduction, or clarification

Comments

@i18nsite
Copy link

i18nsite commented Feb 26, 2025

Describe the bug

I use vite + svelte compile into web compent
worked on 5.20.2, error on 5.20.4

Captcha.svelte (2:0): "toggle_class" is not exported by "../node_modules/svelte/src/internal/client/index.js", imported by "Captcha.svelte".
Captcha.svelte (247:5): Error when using sourcemap for reporting an error: Can't resolve original location of error.
Captcha.svelte (247:5): "flush_sync" is not exported by "../node_modules/svelte/src/internal/client/index.js", imported by "Captcha.svelte".
Captcha.svelte (254:5): Error when using sourcemap for reporting an error: Can't resolve original location of error.
Captcha.svelte (254:5): "flush_sync" is not exported by "../node_modules/svelte/src/internal/client/index.js", imported by "Captcha.svelte".
State.svelte (616:5): Error when using sourcemap for reporting an error: Can't resolve original location of error.
State.svelte (616:5): "flush_sync" is not exported by "../node_modules/svelte/src/internal/client/index.js", imported by "State.svelte".

Reproduction

git clone -b dev  ssh://[email protected]:443/i18n-site/web.git
cd web
bun i && ./build.sh

Logs

System Info

System:
    OS: macOS 15.3
    CPU: (12) arm64 Apple M2 Max
    Memory: 16.98 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.6.1 - ~/.local/share/mise/installs/node/23.6.1/bin/node
    Yarn: 1.22.22 - ~/.local/share/mise/installs/node/23.6.1/bin/yarn
    npm: 10.9.2 - ~/.local/share/mise/installs/node/23.6.1/bin/npm
    pnpm: 9.15.4 - ~/.local/share/mise/installs/node/23.6.1/bin/pnpm
    bun: 1.2.3 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 133.0.6943.141
    Safari: 18.3
  npmPackages:
    svelte: =5.20.2 => 5.20.2

Severity

annoyance

@adiguba
Copy link
Contributor

adiguba commented Feb 26, 2025

Hello,

toggle_class() and flush_sync() are internals API which have been deleted/renamed.

Did the *.svelte files have been build with the latest version of Svelte ?

@Conduitry Conduitry added the awaiting submitter needs a reproduction, or clarification label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification
Projects
None yet
Development

No branches or pull requests

3 participants