ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## Module "process" has been externalized for browser compatibility. Cannot access "process.env" in client code > [参考](https://stackoverflow.com/questions/73335430/module-util-has-been-externalized-for-browser-compatibility-cannot-access-ut) 在 vite.config.ts 中添加 ``` resolve: { alias: { process: "process/browser", stream: "stream-browserify", zlib: "browserify-zlib", util: "util/", '@': path.resolve(__dirname, './src'), } } ```