commercetools / commercetools/nodejs

Imports in typescript not working

Open
#1,624 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
70
PR merge metrics
No merged PRs in 30d

Description

### Description

Imports in typescript do not work as described in the documentation.

### Expected Behavior

According to https://commercetools.github.io/nodejs/sdk/api/sdkMiddlewareAuth.html for example, we should be able to do
`import { createClient } from '@commercetools/sdk-client'`

### Current Behavior

But when I try it, it gives me the error

_Could not find a declaration file for module '@commercetools/sdk-client'._

### Possible Solution

Add type definitions to the packages or create @types/package-name ?

**Or did I miss something?**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.