Comments (3)
Having a link to the repository is really helpful! 😄
Does it work if you set globalAPI: false
in the MonacoEditorWebpackPlugin
options?
Personally I recommend to not use monaco-editor-webpack-plugin
at all. It’s just not necessary. Since you’re using Webpack 4 (based on your package-lock.json
), I recommend having a look at https://github.com/remcohaszing/monaco-yaml/tree/v3.0.0/examples/webpack-worker-loader.
I think the following section should just make it work:
monaco-yaml/examples/webpack-worker-loader/src/index.js
Lines 3 to 21 in 0903025
Note that you must use Webpack loader syntax because of microsoft/monaco-editor#2592
And maybe you need this to make icons work. I’m not familiar with Angular build tooling.
monaco-yaml/examples/webpack-worker-loader/webpack.config.js
Lines 10 to 13 in 0903025
from monaco-yaml.
I recently found out unikubehq/frontend (see here) also uses monaco-yaml
with monaco-webpack-plugin
. Does this help?
from monaco-yaml.
I’m going to close this issue, because the same issue was resolved in #98
from monaco-yaml.
Related Issues (20)
- how to use `yaml` as an embedded language HOT 4
- Autompletion not working in Example HOT 2
- support prettier v3 HOT 2
- configureyaml is not working with @monaco-editor/react HOT 12
- References fail to resolve when using locally defined schema with `enableSchemaRequest` set to false HOT 1
- Ability to tweak autocompletion HOT 1
- monaco-yaml在销毁的时候调用dispose()后控制台报错 HOT 1
- [ BUG ] Next.JS 14.1 Can't load worker file HOT 1
- [ NEED HELP ] window is not defined on NextJS 14.1.0 HOT 3
- How to load with @monaco-editor/loader? HOT 1
- Does this library is support with monaco editor AMD version HOT 4
- Enum autocomplete didn't put string inside quote HOT 1
- Uncaught (in promise) Error: Worker manager has been disposed HOT 3
- The error message for the enumeration type is incorrect HOT 2
- Error since 5.2.0 / "export 'toSelectionRanges' (imported as 'toSelectionRanges') was not found in 'monaco-languageserver-types'" HOT 2
- Yaml worker can't read properties of undefined HOT 4
- Missing this package “monaco-marker-data-provider” HOT 8
- Is it possible to detect multiple schemas in one editor? HOT 1
- toSelectionRanges was not found in 'monaco-languageserver-types' HOT 1
- Error `toSelectionRanges` is not exported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-yaml.