Skip to content

Commit cd2f5b4

Browse files
authored
Merge pull request #188 from jhk-mjolner/main
Added solution for `Not allowed to load local resource` errors with Angular
2 parents 40ba45c + d6be01e commit cd2f5b4

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)