Black Friday Sale
sergio

SERGIO JOSE VALENTE DA CRUZ

Joined 16 September, 2021
2
Comments
2.1K
Total experiences
84
Lesson completed

Last activity

Mari Kita Bangun ScreencastTambahkan kedalam keranjang11:44

SERGIO JOSE VALENTE DA CRUZ

Mohon bantuannya bang Di Show.js saya lihat sdh benar seperti ini dan sdh diimport

import toast from 'toasted-notes' ; import "toasted-notes/src/styles.css";

====================================const addToCartHandler = async() => { try { let response = await axios.post(api/add-to-cart/${playlist.slug}) toast.notify(response.data.message); setANumberOfCart(cart => [...cart, playlist]) } catch (error) { toast.notify(error.response.data.message); } }

====================================

akan tetapi eror seperti ini bang

TypeError: Cannot destructure property 'reset' of '(intermediate value)(intermediate value)(intermediate value)' as it is null.

====================================

useTransition

2026 | function useTransition(data, props, deps) { 2027 | const propsFn = is.fun(props) && props; 2028 | const {

2029 | reset, 2030 | sort, 2031 | trail = 0, 2032 | expires = true,

====================================

saya sudah menginstall toasted-notes dan react-spring. Setelah restart yarn tetap ngga bisa bang untuk Add to Cart nya.

Mohon bantuannya bang :)

Mari Kita Bangun ScreencastFetch playlist dari api21:21

SERGIO JOSE VALENTE DA CRUZ replied to Ananda Dimmas Budiarto comment.

sama seperti saya tadi sepertinya bang, nemu di stackoverflow https://stackoverflow.com/questions/48510683/laravel-how-to-revert-local-storage-symlink-and-refresh

yaitu:

  1. ke terminal directory webnya terus cd public
  2. rm storage
  3. php artisan storage:link

nb:

  1. filesytemnya sdh di atur public lihat di config -> filesystems.php, ganti ke public atau lewat .env. Di .env copy FILESYSTEM_DRIVER dari filesystems terus paste di .env, seperti FILESYSTEM_DRIVER=public
  2. Ada di video ke 9 untuk detailnya

semoga membantu :)