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

.vite cache cannot be refreshed after yarn upgrade module in local filesystem #8734

Closed
7 tasks done
qyb opened this issue Jun 23, 2022 · 2 comments
Closed
7 tasks done

Comments

@qyb
Copy link

qyb commented Jun 23, 2022

Describe the bug

I use a developing module in my local folder and add it in the vite-project's package.json as "file:path" syntax.

When I update my module, then run yarn upgrade module-name in the vite-project. Yarn will update node_modules/module-name as my expected, but node_modules/.vite/deps won't be updated.

It's a Windows10/WSL1/Ubuntu22.04 env. Looks similar #7176

Reproduction

https://github.com/qyb/bugforvite

System Info

System:
    OS: Linux 4.4 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
    Memory: 15.96 GB / 31.92 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.14.2 - ~/node-v16.14.2-linux-x64/bin/node
    Yarn: 1.22.15 - ~/node-v16.14.2-linux-x64/bin/yarn
    npm: 8.5.0 - ~/node-v16.14.2-linux-x64/bin/npm

Used Package Manager

yarn

Logs

No response

Validations

@runlong-yao
Copy link

runlong-yao commented Jun 23, 2022

the same issue
steps:
1、
npm install from local package
or
npm link package

2、
use the api in package and the page will not update

@bluwy
Copy link
Member

bluwy commented Jun 23, 2022

I think this is a duplicate of #6718. Ideally we would resolve each dependency before optimization and compare them to bust the cache, but we skipped that currently.

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants