Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running module in TS project with verbatimModuleSyntax gives TS errors #229

Open
cohlar opened this issue Aug 10, 2023 · 0 comments · May be fixed by #230
Open

Running module in TS project with verbatimModuleSyntax gives TS errors #229

cohlar opened this issue Aug 10, 2023 · 0 comments · May be fixed by #230

Comments

@cohlar
Copy link
Contributor

cohlar commented Aug 10, 2023

When running on a TS project with verbatimModuleSyntax, I get the below TS errors.

node_modules/amazon-sp-api/lib/typings/operations/authorization.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/catalogItems.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/fbaInboundEligibility.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/fbaInventory.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/fbaSmallAndLight.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/feeds.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse, ProcessingStatus } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/finances.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/fulfillmentInbound.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/orders.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.


1 import {BaseResponse} from "../baseTypes";
          ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/reports.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse, ProcessingStatus } from "../baseTypes";
           ~~~~~~~~~~~~

node_modules/amazon-sp-api/lib/typings/operations/tokens.ts:1:10 - error TS1484: 'BaseResponse' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { BaseResponse } from "../baseTypes";
@cohlar cohlar linked a pull request Aug 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant