-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
process.cwd() is not a function #44
Comments
比如你可以这样用:process.env.NODE_ENV |
是的,这样是可以的,但是当引入某些第三包时,会出现打包错误 |
3817 有类似案例,仓库地址: vite_vue3_web3 |
hb0730
added a commit
to hb0730/vue-pure-admin
that referenced
this issue
Sep 27, 2021
在调用build/util/loadEnv()函数时会报process.cwd() is not a function pure-admin#44
Merged
xiaoxian521
pushed a commit
that referenced
this issue
Sep 27, 2021
在调用build/util/loadEnv()函数时会报process.cwd() is not a function #44
好的,在更改之后,我在本地build 部署之后是可以正常运行的,之前这么做是因为dotenv 读取环境变量用到了node相关内置函数,现在应该没有什么影响 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: