-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Description
- [x ] Read the docs.
- [x ] Use Vite >=2.0. (1.x is no longer supported)
- [ x] If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
When I upgrade vite to any version after 2.0.0-beta.62 I get the error as follows:
App.vue:36 Uncaught ReferenceError: process is not defined
at setup (App.vue:36)
at callWithErrorHandling (runtime-core.esm-bundler.js:154)
at setupStatefulComponent (runtime-core.esm-bundler.js:6419)
at setupComponent (runtime-core.esm-bundler.js:6380)
at mountComponent (runtime-core.esm-bundler.js:4118)
at processComponent (runtime-core.esm-bundler.js:4094)
at patch (runtime-core.esm-bundler.js:3712)
at render2 (runtime-core.esm-bundler.js:4794)
at mount (runtime-core.esm-bundler.js:3019)
at Object.app.mount (runtime-dom.esm-bundler.js:1220)
Reproduction
https://github.com/ljcremer/vite-test
System Info
vite
version: 2.0.0-beta.67- Operating System: Windows 10
- Node version:v12.19.1
- Package manager (npm/yarn/pnpm) and version:6.14.8
Logs (Optional if provided reproduction)
- Run
vite
orvite build
with the--debug
flag. - Provide the error log here.