Comments (8)
Seems that ./assets
works too, like @bboehm86 suggested, though not sure why. I'm able to build for gh-pages by using the following import in AppModule
:
MonacoEditorModule.forRoot({baseUrl: "./assets"})
from ngx-monaco-editor.
I guess ./assets
as default would be ok too 🤔
from ngx-monaco-editor.
Well, if you don't provide --base-href
option in ng build --prod
, /assets
will be used (default behaviour).
This, for example, can help to set npm script to build Angular app for gh-pages and prod (exemple: for Docker) easily without changing code. The other ways is to set env variable for assets path or as i do in my project, retrieve the base-href path used.
I already submitted a PR #64 . It not really a good solution but it works 😕
from ngx-monaco-editor.
I'm facing that problem too.
Any walkaround?
OK, after i wrote that i read @yowari comment once again and i'll try that way. Thanks =)
from ngx-monaco-editor.
this doesn't work for me
from ngx-monaco-editor.
Seems that
./assets
works too, like @bboehm86 suggested, though not sure why. I'm able to build for gh-pages by using the following import inAppModule
:MonacoEditorModule.forRoot({baseUrl: "./assets"})
This worked perfectly for me. It should be quoted in the Readme.md in my opinion
from ngx-monaco-editor.
It's doesn't work for me too
from ngx-monaco-editor.
it works fine for me, even with remote URL:
MonacoEditorModule.forRoot({
baseUrl: 'http://localhost:53015/assets'
})
from ngx-monaco-editor.
Related Issues (20)
- How to call setTheme() after the editor loaded?
- Can only have one anonymous define call per script file
- Uncaught TypeError: Cannot read properties of undefined (reading 'VSCODE_BROWSER_CODE_LOADING' HOT 2
- ng serve reload loop HOT 2
- How to add extra Custom worker? HOT 1
- Angular 14 HOT 19
- Change Read Only Mode HOT 1
- Cannot use the library inside a standalone component HOT 1
- Suggestion box events
- ngx-monaco-editor 9.0.0 not working for custome theme in angular 10
- support angular 16 HOT 2
- Is this compatible with Angular 16 Ivy compiler? HOT 1
- How to format or Beautify Javascript code on button click event ? HOT 1
- ngx-monaco-editor-v2
- Is Possible to find the exact position of the pointer inside the monaco editor
- Insert the Value in the Current Cursor Position Using ngx-monaco-editor-v2
- production build produces 80MB assets
- How to download the difference between two codes in ngx diff monaco editor?
- ngx-monaco-editor-v2: issues with Angular 17+
- How to unregister the custom language
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 ngx-monaco-editor.