You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repo provided is a new vite project created from npm create vite@latest with a new src/Test.js exporting a function which is imported in src/App.jsx.
Steps:
comment out import Test from './Test.js'; in App.jsx
rename Test.js to Test2.js: the vite app will reload
reload the site and rename Test2.js to Test.js: the vite app ignores the change
uncomment import Test from './Test.js'; in App.jsx
rename Test.js to Test2.js: the vite app will reload
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
@dariocravero is this something you can reproduce without React? Let us know, if it is React only we'll move the issue to the new vite-plugin-react repository
Describe the bug
What I'm doing:
What I expect is:
What actually happens is:
Reproduction
https://github.com/dariocravero/vite-page-reload-issue
Steps to reproduce
The repo provided is a new vite project created from
npm create vite@latest
with a newsrc/Test.js
exporting a function which is imported insrc/App.jsx
.Steps:
import Test from './Test.js';
inApp.jsx
Test.js
toTest2.js
: the vite app will reloadTest2.js
toTest.js
: the vite app ignores the changeimport Test from './Test.js';
inApp.jsx
Test.js
toTest2.js
: the vite app will reloadSystem Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: