Skip to content

Commit

Permalink
Merge pull request #188 from jhk-mjolner/main
Browse files Browse the repository at this point in the history
Added solution for `Not allowed to load local resource` errors with Angular
  • Loading branch information
CGNonofr authored Sep 18, 2023
2 parents 40ba45c + d6be01e commit cd2f5b4
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 cd2f5b4

Please sign in to comment.