You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compile my project, It give me below error: ERROR in node_modules/dgram-as-promised/lib/socket-as-promised.d.ts:2:8 - error TS1192: Module '"dgram"' has no default export.
Could you please suggest what would be the possible solution for this issue?
The text was updated successfully, but these errors were encountered:
I'm using this lib in Angular project, import code is as below:
import { DgramAsPromised, SocketAsPromised } from 'dgram-as-promised';
Creating object like this:
let socket: SocketAsPromised = DgramAsPromised.createSocket('udp4')
In package.json file:
"dependencies": {
...
"dgram-as-promised": "^3.0.3",
...
}
"devDependencies": {
...
"@types/node": "^12.11.1",
...
}
When I compile my project, It give me below error:
ERROR in node_modules/dgram-as-promised/lib/socket-as-promised.d.ts:2:8 - error TS1192: Module '"dgram"' has no default export.
Could you please suggest what would be the possible solution for this issue?
The text was updated successfully, but these errors were encountered: