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

Import path to rest resources invalid #856

Open
5 tasks done
bloom-alex opened this issue May 4, 2024 · 1 comment
Open
5 tasks done

Import path to rest resources invalid #856

bloom-alex opened this issue May 4, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@bloom-alex
Copy link

Issue summary

Just updated to v10.0.0 in which export path have changed quite a bit.

The suggested import path in your readme to load the restResources object is no longer valid. Could you please update the doc and provide more examples in your migration guide, especially for folks having to import TS types. What's available here is very limited.

Trying to stay on top of the latest versions of your lib has not been frictionless in the last few months. Better migration guides would be a great start.

Thanks for your help

Before opening this issue, I have:

  • Upgraded to the latest version of the relevant packages
    • @shopify/* package and version: 10.0.0
    • Node version: 20.11.0
    • Operating system: macOS 14.4.1
  • Set { logger: { level: LogSeverity.Debug } } in my configuration, when applicable
  • Found a reliable way to reproduce the problem that indicates it's a problem with the package
  • Looked for similar issues in this repository
  • Checked that this isn't an issue with a Shopify API
@sle-c sle-c added SEV-3 Normal Severity documentation Improvements or additions to documentation and removed SEV-3 Normal Severity labels May 7, 2024
@carstenblt
Copy link

Did you fix it though?

import { restResources } from "@shopify/shopify-api/dist/ts/rest/admin/2024-04";

seems to be accepted by ts in vscode but yields

Module not found: Package path ./dist/ts/rest/admin/2024-04 is not exported

when building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants