Skip to content

Commit

Permalink
Update README.md: Solution for Not allowed to load local resource e…
Browse files Browse the repository at this point in the history
…rrors with Angular
  • Loading branch information
jhk-mjolner authored Sep 13, 2023
1 parent 40ba45c commit d6be01e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ There are workarounds for both:
}
```

### If using Angular and getting `Not allowed to load local resource:` errors

*The short version*: set up and use a custom webpack config file and add this under `module`:
```typescript
parser: {
javascript: {
url: true,
},
},
```

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.


# Usage

## Monaco standalone services
Expand Down

0 comments on commit d6be01e

Please sign in to comment.