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
When we use vite build -w, with some inline module script, all build will crash when some file changed.
For reproduction:
Go to https://codesandbox.io/s/loving-satoshi-or8v6?file=/src/App.tsx , click server control panel => restart server.
Then open App.tsx and just change some code in the file, then some error log will print on the right bottom Terminal panel.
build started...
✓ 27 modules transformed.
[vite:html-inline-script-proxy] Could not load /sandbox/index.html?html-proxy&index=0.js (imported by index.html): Cannot read property '0' of undefined
[vite:html-inline-proxy] Could not load /Users/zxbing0066/Workspace/contribute/vite-demo/index.html?html-proxy&index=0.js (imported by index.html): Cannot read property '0' of undefined
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 https://github.com/vuejs/vue-next instead.
Describe the bug
When we use
vite build -w
, with some inline module script, all build will crash when some file changed.For reproduction:
Go to https://codesandbox.io/s/loving-satoshi-or8v6?file=/src/App.tsx , click
server control panel
=>restart server
.Then open
App.tsx
and just change some code in the file, then some error log will print on the right bottomTerminal
panel.Reproduction
https://codesandbox.io/s/loving-satoshi-or8v6?file=/src/App.tsx
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: