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
Running vite preview works fine and loads the page. Running vite dev gives the following error:
[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
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.
Describe the bug
Running
vite preview
works fine and loads the page. Runningvite dev
gives the following error:Reproduction
https://codesandbox.io/p/github/maicol07/MithrilTS-JSX/draft/strange-varahamihira?file=%2Ftsconfig.json&selection=%5B%7B%22endColumn%22%3A37%2C%22endLineNumber%22%3A13%2C%22startColumn%22%3A37%2C%22startLineNumber%22%3A13%7D%5D&workspace=%257B%2522activeFileId%2522%253A%2522cl9s6zw5b000klseyhb0se6g4%2522%252C%2522openFiles%2522%253A%255B%2522%252FREADME.md%2522%252C%2522%252Fpackage.json%2522%252C%2522%252Fsrc%252FApp.tsx%2522%252C%2522%252Fsrc%252FCounter.tsx%2522%252C%2522%252Ftsconfig.json%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522sidekickItems%2522%253A%255B%257B%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522cl9s766k7000wlseye1f9c3vi%2522%252C%2522key%2522%253A%2522cl9s765y500op3n6zbdaxmig9%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D
Steps to reproduce
Click Devtools icon on the navbar (before your user avatar) and go to preview --> log. Try the same with dev
System Info
System: OS: Linux 5.4 Debian GNU/Linux 11 (bullseye) 11 (bullseye) CPU: (4) x64 AMD EPYC Memory: 2.66 GB / 3.85 GB Container: Yes Shell: 5.1.4 - /bin/bash Binaries: Node: 16.17.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/pitcher/bin/yarn npm: 8.15.0 - /opt/pitcher/bin/npm Watchman: 20220528.183901.0 - /usr/local/bin/watchman npmPackages: vite: ^3 => 3.2.0
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: