SyntaxError: The requested module 'vite' does not provide an export named 'isCSSRequest' solution

I originally wanted to run the compilation of the vue project today, but yarn dev encountered this problem and was puzzled. He even took a project with the same vite.config.js. If others could run it but couldn't, they reported this error. I spent two hours searching for information everywhere, and then I thought it might be that the dependencies in package.json were not downloaded. Yarn or npm would be enough.

Guess you like

Origin blog.csdn.net/returnadsss/article/details/128792813