Kyon147 / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
363 stars 107 forks source link

Class "Osiset\BasicShopifyAPI\Store\Memory" not found #231

Closed kkang386 closed 10 months ago

kkang386 commented 11 months ago

Expected Behavior

Should be able to install embedded app to a testing store.

Current Behavior

It hangs with errors in the log:

Failure Information

Installed the newest lib version 19.1.0 with php 8.1.25, and installed gnikyt/basic-shopify-apiver 11.0. Then the log file shows this when installing the embeded app to a new store: ` /var/www/vendor/kyon147/laravel-shopify/src/Http/Middleware/VerifyShopify.php(77): Osiset\ShopifyApp\Services\ApiHelper->make()

1 [internal function]: Osiset\ShopifyApp\Http\Middleware\VerifyShopify->__construct(Object(Illuminate\Auth\AuthManager), Object(Osiset\ShopifyApp\Services\ApiHelper), Object(Osiset\ShopifyApp\Storage\Queries\Shop))

Tried with installingosiset/basic-shopify-api ver 11.0, got the same error, because the autoloader is trying to loadgnikyt/basic-shopify-api `, and the verifyShopify is trying to load the other one.

Steps to Reproduce

See the previous step

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Kyon147 commented 11 months ago

@kkang386 you should not need to install the Shopify api package yourself, it is a dep within the package itself so gets added.

You could be getting this issue because of that. Try removing it from your composer file and running composer update again.

Kyon147 commented 10 months ago

Assuming my comment worked, so going to close this but reopen if still and issue

haseebsoftwreng commented 9 months ago

cause same issue for me when i update from 18 to 19 version "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "kyon147/laravel-shopify": "^19.1", "laravel/framework": "^10.0", "laravel/sanctum": "^3.2", "laravel/telescope": "^4.17", "laravel/tinker": "^2.8" },