vitejs / vite

Next generation frontend tooling. It's fast!
http://vitejs.dev
MIT License
67.47k stars 6.08k forks source link

Cannot Get process.argv arguments #9452

Closed prfardin closed 2 years ago

prfardin commented 2 years ago

Describe the bug

I can't use both custom options and Vite config option, I get error: Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling. Screenshot 2022-07-30 104228

Reproduction

https://github.com/prfardin/vite-test

System Info

OS Name Microsoft Windows 11 Enterprise 
Version 10.0.22000 Build 22000  
Other OS Description    Not Available   
OS Manufacturer Microsoft Corporation   
System Name DESKTOP-N2Q2R5E 
System Manufacturer HP  
System Model    HP EliteDesk 800 G3 SFF 
System Type x64-based PC    
System SKU  1VR48UC#ABA 
Processor   Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz, 3600 Mhz, 4 Core(s), 8 Logical Processor(s)    
BIOS Version/Date   HP P01 Ver. 02.31, 10/15/2019   
SMBIOS Version  3.0 
Embedded Controller Version 6.41    
BIOS Mode   UEFI    
BaseBoard Manufacturer  HP  
BaseBoard Product   8299    
BaseBoard Version   KBC Version 06.29   
Platform Role   Desktop 
Secure Boot State   Off 
PCR7 Configuration  Binding Not Possible

Used Package Manager

npm

Logs

No response

Validations

bluwy commented 2 years ago

I think you mean --rtl=true? Right now it thinks you're trying to run Vite in the rtl=true directory. But even with that the Vite CLI doesn't allow custom options. Nonetheless I don't think this is a bug in Vite.