Module path problem after typescript compiles from d.ts of a third-party library to amd mode

1. For example, after npm installs crypto-js and its d.ts declaration file, js, compiled into AMD mode cannot find the crypto-js module

Code structure
clipboard.png

index.ts crypto-jsd.ts

clipboard.png

clipboard.png

The path of

crypto-js is actually under node_modules/crypto-js, so you can"t find it.

do I have to write reqiure.config to configure the paths? of the module? Isn"t it troublesome if you have too much? is there any solution?

Menu