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

yarn install is not installing all dependencies properly #5501

Closed
thinkrapido opened this issue Jul 13, 2022 · 2 comments
Closed

yarn install is not installing all dependencies properly #5501

thinkrapido opened this issue Jul 13, 2022 · 2 comments

Comments

@thinkrapido
Copy link

Describe the bug

using yarn install produces an error when first time initialized

Reproduction

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

Solution: use npm install

Logs

No response

System Info

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

Severity

annoyance

Additional Information

No response

@benmccann
Copy link
Member

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

@Conduitry
Copy link
Member

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.

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

No branches or pull requests

3 participants