-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
feat: deps optimizerEsbuild Dependencies OptimizationEsbuild Dependencies Optimizationfeat: web workerspending triage
Description
Describe the bug
I'm instantiating a web worker from the monaco-yaml
library. In v2, nothing unusual happens when I do this. In v3 beta 6, dev works normally, but in a build, the build fails with this error:
[vite:worker] 'Schema' is not exported by node_modules/js-yaml/index.js, imported by node_modules/monaco-yaml/lib/esm/_deps/yaml-language-server/lib/esm/languageservice/utils/parseUtils.js
Reproduction
System Info
System:
OS: Linux 5.0 undefined
CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.10 - /bin/yarn
npm: 7.17.0 - /bin/npm
npmPackages:
@vitejs/plugin-react: ^1.3.2 => 1.3.2
vite: 3.0.0-beta.6 => 3.0.0-beta.6
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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 vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
feat: deps optimizerEsbuild Dependencies OptimizationEsbuild Dependencies Optimizationfeat: web workerspending triage