-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Description
- [√ ] Read the docs.
- [√] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- [√] This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Describe the bug
I'm getting global is not defined
error.
Reproduction
The header of the file has this comment block.
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
/* eslint-disable no-proto */
It seems to be coming from a module that includes Node.js modules, and the browser equivalent has been included, and there is a global
keyword in there, which vitejs cannot seem to handle.
System Info
vite@2.1.0
Cyber3x, felixakiragreen, mattiaz9 and fwh1990
Metadata
Metadata
Assignees
Labels
No labels