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

[BUG] Shopware types are not exported in new API client #468

Closed
1 task done
z0n opened this issue Nov 20, 2023 · 2 comments
Closed
1 task done

[BUG] Shopware types are not exported in new API client #468

z0n opened this issue Nov 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@z0n
Copy link

z0n commented Nov 20, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The README for the new API client includes this example to import the Shopware types:

import type {
  operationPaths,
  operations,
  components,
} from "@shopware/api-client/api-types";

When trying this with the latest version of @shopware/api-client (0.5.0), the module @shopware/api-client/api-types can't be found.

Expected Behavior

It should be possible to import the Shopware types like described in the example.

Steps To Reproduce

No response

Environment

- OS: macOS 14.1.1
- Node: 21.2.0
- yarn: 1.22.21

Anything else?

No response

@z0n z0n added the bug Something isn't working label Nov 20, 2023
@BrocksiNet BrocksiNet moved this to Developer Backlog in Composable Frontends Nov 20, 2023
@patzick
Copy link
Collaborator

patzick commented Nov 20, 2023

hey @z0n
Looks like yarn cached something, I checked with our stackblitz example and it works: https://stackblitz.com/edit/github-jpbvrb?file=src%2FadminApiClient.ts

image

please recheck and if the problem still occurs prepare some reproduction on Stackblitz

@z0n
Copy link
Author

z0n commented Nov 21, 2023

Hi @patzick, thanks for looking into it. I found the error on my side: The moduleResolution was set to bundler instead of node in our tsconfig.json. Now it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants