Closed
Description
Expected Behaviour
Refer code.
import type {
AppConfigDataClient,
AppConfigDataClientConfig,
StartConfigurationSessionCommandInput,
} from '@aws-sdk/client-appconfigdata';
import type { GetOptionsInterface } from 'types/BaseProvider';
Import for GetOptionsInterface should be from './BaseProvider'.
Since the import is using an incorrect path, build fails. See error below:
│ ../../node_modules/.pnpm/@[email protected]/node_modules/@aws-lambda-powertools/parameters/types/AppConfigProvider.d.ts:2:42 - e
│ 2 import type { GetOptionsInterface } from 'types/BaseProvider';
│ ~~~~~~~~~~~~~~~~~~~~
│ Found 1 error in ../../node_modules/.pnpm/@[email protected]/node_modules/@aws-lambda-powertools/parameters/types/AppConfigProvi
│ ELIFECYCLE Command failed with exit code 2.
Current Behaviour
GetOptionsInterface
is imported from incorrect path.
import type {
AppConfigDataClient,
AppConfigDataClientConfig,
StartConfigurationSessionCommandInput,
} from '@aws-sdk/client-appconfigdata';
import type { GetOptionsInterface } from 'types/BaseProvider';
Code snippet
GetOptionsInterface
is imported from incorrect path.
import type {
AppConfigDataClient,
AppConfigDataClientConfig,
StartConfigurationSessionCommandInput,
} from '@aws-sdk/client-appconfigdata';
import type { GetOptionsInterface } from 'types/BaseProvider';
Steps to Reproduce
pnpm run build
Possible Solution
Import GetOptionsInterface
from correct path.
import type {
AppConfigDataClient,
AppConfigDataClientConfig,
StartConfigurationSessionCommandInput,
} from '@aws-sdk/client-appconfigdata';
import type { GetOptionsInterface } from './BaseProvider';
AWS Lambda Powertools for TypeScript version
latest
AWS Lambda function runtime
18.x
Packaging format used
npm
Execution logs
No response