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

Failed transformation due to bad scope analysis #10289

Closed
7 tasks done
benmccann opened this issue Sep 29, 2022 · 0 comments · Fixed by #10300
Closed
7 tasks done

Failed transformation due to bad scope analysis #10289

benmccann opened this issue Sep 29, 2022 · 0 comments · Fixed by #10300
Labels
has workaround p2-edge-case Bug, but has workaround or limited in scope (priority)

Comments

@benmccann
Copy link
Collaborator

benmccann commented Sep 29, 2022

Describe the bug

Screenshot from 2022-09-29 10-17-06

We're working around it for now by writing the code in a different manner to avoid triggering the bad transform: sveltejs/kit#7088

Reproduction

Create a new SvelteKit app. Choose all the defaults in the CLI wizard:

npm create svelte@2.0.0-next.181 myapp
cd myapp
npm install
npm run dev

Visit the Sverdle tab in the browser

System Info

Vite 3.1.4

Used Package Manager

npm

Logs

answers is not defined
ReferenceError: answers is not defined
    at new Game (/src/routes/sverdle/+page.server.js:85:44)
    at load (/src/routes/sverdle/+page.server.js:6:15)
    at load_server_data (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:31:41)
    at /node_modules/@sveltejs/kit/src/runtime/server/data/index.js:57:13
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 1)
    at async render_data (/node_modules/@sveltejs/kit/src/runtime/server/data/index.js:94:17)
    at async resolve (/node_modules/@sveltejs/kit/src/runtime/server/index.js:228:17)
    at async respond (/node_modules/@sveltejs/kit/src/runtime/server/index.js:284:20)
    at async /node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:406:22

Validations

@benmccann benmccann added bug has workaround p2-edge-case Bug, but has workaround or limited in scope (priority) labels Sep 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has workaround p2-edge-case Bug, but has workaround or limited in scope (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant