You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I introduced a third-party library called 'event-emitter' into my project and it threw an error when executing 'yarn dev' that the contents of the file could not be read
> node_modules/d/index.js:7:30: error: Could not read from file: /Users/xxx/61/vite-project/node_modules/es5-ext/string/index.js#/contains
7 │ , contains = require("es5-ext/string/#/contains");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
error when starting dev server:
Error: Build failed with 1 error:
node_modules/d/index.js:7:30: error: Could not read from file: /Users/xxx/61/vite-project/node_modules/es5-ext/string/index.js#/contains
at failureErrorWithLog (/Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:1449:15)
at /Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:1131:28
at runOnEndCallbacks (/Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:921:63)
at buildResponseToResult (/Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:1129:7)
at /Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:1236:14
at /Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:609:9
at handleIncomingPacket (/Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:706:9)
at Socket.readFromStdout (/Users/xxx/61/vite-project/node_modules/esbuild/lib/main.js:576:7)
at Socket.emit (events.js:375:28)
at Socket.emit (domain.js:470:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
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.
Describe the bug
I introduced a third-party library called 'event-emitter' into my project and it threw an error when executing 'yarn dev' that the contents of the file could not be read
Reproduction
https://github.com/liuqh0609/vite-test
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: