-
Notifications
You must be signed in to change notification settings - Fork 20
Description
I have imported remote-pay-cloud 1.4.3 into my application and i get the following error when i do an ng build --prod:
ERROR in node_modules/remote-pay-cloud/src/com/clover/remote/client/transport/websocket/WebSocketCloudCloverTransport.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
I fixed the error in my local environment by simply removing the first import from the WebSocketCloudCloverTransport.ts file which looks like this:
import http = require('http');
I also verified that for my current functionality needs the package still works without that import but I almost guarantee that i broke something else somewhere by removing it. I would appreciate if someone could look at what I did here and fix the problem correctly.