Auto import by VS Code:
import deepEqual = require('deep-equal');
Doesn't work:
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.
Then I tried to do like this:
import * as deepEqual from 'deep-equal';
error TS2497: Module '"path/@types/deep-equal/index"' resolves to a non-module entity and cannot be imported using this construct.
And like this:
import {deepEqual} from 'deep-equal';
error TS2305: Module '"C:/Projects/ManagerServer/Src-LoyaltyCoin.ManagerServer.Core/ManagerWeb/ClientApp/node_modules/@types/deep-equal/index"' has no exported member 'deepEqual'.
I haven't got ideas how can I import this. If there's no solution for this, please suggest me another library to compare objects for Angular 7.