Skip to content

Commit d6be01e

Browse files
authored
Update README.md: Solution for Not allowed to load local resource errors with Angular
1 parent 40ba45c commit d6be01e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ There are workarounds for both:
9898
}
9999
```
100100

101+
### If using Angular and getting `Not allowed to load local resource:` errors
102+
103+
*The short version*: set up and use a custom webpack config file and add this under `module`:
104+
```typescript
105+
parser: {
106+
javascript: {
107+
url: true,
108+
},
109+
},
110+
```
111+
112+
See [this issue](https://github.com/CodinGame/monaco-vscode-api/issues/186) or this [StackOverflow answer](https://stackoverflow.com/a/75252098) for more details, and [this discussion](https://github.com/angular/angular-cli/issues/24617) for more context.
113+
114+
101115
# Usage
102116

103117
## Monaco standalone services

0 commit comments

Comments
 (0)