We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using yarn install produces an error when first time initialized
yarn install
Instead of using:
npm create svelte my-app cd my-app npm install npm run dev -- --open
Usage of:
npm create svelte my-app cd my-app yarn yarn dev -- --open
Produces error: Function called outside component initialization
Function called outside component initialization
Solution: use npm install
npm install
No response
System: OS: Linux 5.15 NixOS 22.11 (Raccoon) 22.11 (Raccoon) CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz Memory: 25.81 GB / 31.32 GB Container: Yes Shell: 5.1.16 - /nix/store/pxfxgmas6iyqb6dq7d7d7kvv1vld4r89-bash-interactive-5.1-p16/bin/bash Binaries: Node: 18.3.0 - /nix/store/njq5flksyp6aplbp1r1gqpvajch7fyrb-nodejs-18.3.0/bin/node Yarn: 1.22.18 - /nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/bin/yarn npm: 8.11.0 - /nix/store/njq5flksyp6aplbp1r1gqpvajch7fyrb-nodejs-18.3.0/bin/npm Browsers: Firefox: 101.0 npmPackages: @sveltejs/adapter-auto: next => 1.0.0-next.57 @sveltejs/kit: next => 1.0.0-next.371 svelte: ^3.46.0 => 3.49.0 vite: ^2.9.13 => 2.9.14
annoyance
The text was updated successfully, but these errors were encountered:
This was probably fixed by #5498 or if not should be fixed as soon as we release the new version of SvelteKit that works with Vite 3
Sorry, something went wrong.
Yep, almost certainly a duplicate of #5495. If you're still seeing this, I imagine it's because Yarn hasn't updated their cache yet.
No branches or pull requests
Describe the bug
using
yarn install
produces an error when first time initializedReproduction
Instead of using:
Usage of:
Produces error:
Function called outside component initialization
Solution: use
npm install
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: