-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
'Uncaught ReferenceError: process is not defined' error with Vite #509
Comments
any chance you solved this problem? I faced same one and I tried |
@raonsol DOC says:
|
Description
Enviroment: Vite + Typescript + SWC
When I tried to create new
NotionAPI
object, vite throws an error.I think it is related with package
@szmarczak/http-timer
, which uses code that implicitly gets node version byprocess.versions.node
. Vite does not allow importing env variables withprocess
object. (https://vitejs.dev/guide/env-and-mode.html)The text was updated successfully, but these errors were encountered: