-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: Default LIST template has an error in vite.config.ts #30362
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
Comments
I have 50 or so other React/TS/Vite projects on this machine and all are fine. |
Thanks for the reply! I tried disabling all of my extensions, but I'm still unable to reproduce the issue. I also had a coworker try, and he wasn't able to reproduce it either. Here's my VSCode info:
Could you share your version info, or see if anything here stands out? Also, does disabling extensions or reloading the window resolve the error on your end? |
Version: 1.99.2 (user setup) Its a hard error, restarting vscode doesn't help. |
Thanks for the info! I thought it might be because you were on Windows but I tested it there and still don't see the error. 😩 Could it be a caching issue with a dependency? Does it go away if you try Sorry I'm at a loss of what could be causing this without being able to reproduce it. |
Deleting node-modules and reinstalling deps made no difference I am afraid |
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
Create a default project with the LIST template (not using web wizard)
vite.config.ts has an error that @vitejs/plugin-react has no default export
import react from '@vitejs/plugin-react'
Module '"d:/test/node_modules/@vitejs/plugin-react/dist/index"' has no default export
Expected Behavior
Expected: No compile errors
Steps to Reproduce
Create a default project with the LIST template (not using web wizard)
vite.config.ts has an error that @vitejs/plugin-react has no default export
Code Reproduction URL
xxx
Ionic Info
D:\Test>ionic info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module
'@capacitor/ios/package.json'
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module
'@capacitor/android/package.json'
Ionic:
Ionic CLI : 7.2.1 (C:\Users\ptallett\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/react 8.5.4
Capacitor:
Capacitor CLI : 7.2.0
@capacitor/android : not installed
@capacitor/core : 7.2.0
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v20.9.0 (C:\Program Files\nodejs\node.exe)
npm : 10.1.0
OS : Windows 10
D:\Test>
Additional Information
No response
The text was updated successfully, but these errors were encountered: