Estoy integrando el SDK de mecanografiado con un programa de mecanografiado simple, el SDK está instalado en los módulos del nodo, su archivo tsconfig se ve así
{ "include": ["src", "types"], "compilerOptions": { "module": "esnext", "lib": ["esnext"], "importHelpers": true, "declaration": true, "sourceMap": true, "rootDir": "./src", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "moduleResolution": "node", "target": "ES2017", "jsx": "react", "esModuleInterop": true } }y el paquete.json tiene las siguientes dependencias
"devDependencies": { "stream-equal": "^2.0.1", "tsdx": "^0.14.1", "tslib": "^2.1.0", "typescript": "^3.9.7" }Cuando estoy importando el SDK, me da un error, así que cambié el módulo de commonJs a esnext & target a ES2017 para que coincida con la biblioteca/SDK instalada pero aún así el error
ERROR in ../../../Downloads/MessageMedia(1)/dist/index.js 7:2-66 Module not found: Error: Can't resolve './messagemedialib.cjs.development.js' in 'C:\Users\User\Downloads\MessageMedia(1)\dist' @ ./src/index.ts 12:0-77 13:19-25 18:31-49 ERROR in C:\Users\User\Desktop\WebpackTS\project1\src\index.ts ./src/index.ts 1:53-86 [tsl] ERROR in C:\Users\User\Desktop\WebpackTS\project1\src\index.ts(1,54) TS7016: Could not find a declaration file for module '../node_modules/messagemedialib'. 'C:\Users\User\Desktop\WebpackTS\project1\node_modules\messagemedialib\dist\index.js' implicitly has an 'any' type. 2 errors have detailed information that is not shown. Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it. webpack 5.64.0 compiled with 3 errors and 2 warnings in 3868 msestoy usando webpack para compilar