angular 18 build isuue with eventResource
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
when we build angular 18 it is complaining about the eventSource module which being used by signalR:
node_modules/eventsource/lib/eventsource.js:1:20:
1 │ var parse = require('url').parse;
The package "url" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
node_modules/eventsource/lib/eventsource.js:3:20:
3 │ var https = require('https')
### Expected Behavior
it should build without complaining about it.
my tsconfig having this
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
8
### Anything else?
my tsconfig having this
"moduleResolution": "node",
"importHelpers": true,
"lib": ["ES2023", "DOM"],
"target": "ES2022",
"module": "ES2022",
Contributor guide
Assessment
This issue has not been assessed yet.