gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Shopify React not work on app #1118

Closed Noido closed 2 years ago

Noido commented 2 years ago

Hi, i want use react with laravel in my shopify app_proxy but not work

Route::group(['middleware' =>['auth.proxy']],function(){ Route::get('/sample',[WelcomeController::class,'getSample'])->name('sample.index'); });

Route::get('/sample2',[WelcomeController::class,'getSample'])->name('sample.index2');

If i go directly on server url with /sample2 i got my react page no problem; but on shopify when i go on my apps/sample got only my view welcome.blade.php but no react like react not loaded on shopify

my controller is equal to return view('welcome'); In chrome developper network i have my html load, with app.js but all react components don't work when it s on shopify store

in app.js i have only require('./Components/Sample')

Thanks for your help

Noido commented 2 years ago

Was a cache issue with chrome and incognito mode

jhaineymilevis commented 2 years ago

Was a cache issue with chrome and incognito mode @Noido hi! can you share and example of how you implement it with react?