Given the information above i can say the following
- Upgrade Node.js: Upgrade your Node.js to version 14.13.0 or higher. This will allow Node.js to understand the node: prefix in your imports.
Check Vite version: Ensure you're using a version of Vite that is compatible with your version of Node.js. If you're using an older version of Node.js, you may need to downgrade Vite or upgrade Node.js.
Modify the import statement: If upgrading Node.js or checking Vite version is not an option, another workaround could be to modify the import statement to remove the node: prefix. However, this is not recommended unless absolutely necessary, as it might lead to compatibility issues with other parts of your code or with Vite.