Closed Tomas2D closed 1 year ago
If the TypeScript client with moduleResolution is different then Node16/NodeNext in tsconfig.json tries to do the following import:
moduleResolution
Node16
NodeNext
tsconfig.json
import { GenAIModel } from '@ibm-generative-ai/node-sdk/langchain'
The following error occurs "Module not found" even if the client can handle the sub-directory import (Node 12+).
This can be solved by adding typesVersions field to the package.json.
typesVersions
package.json
Released in 1.2.0
If the TypeScript client with
moduleResolution
is different thenNode16
/NodeNext
intsconfig.json
tries to do the following import:The following error occurs "Module not found" even if the client can handle the sub-directory import (Node 12+).
This can be solved by adding
typesVersions
field to thepackage.json
.