amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

Example basic/private.html error: Uncaught TypeError: Cannot read properties of undefined (reading 'User') #1215

Open chitoadinugraha opened 2 years ago

chitoadinugraha commented 2 years ago

Steps to reproduce:

  1. clone this repository
  2. run npm install
  3. run npm start
  4. open http://localhost:8765/basic/private.html
  5. found this error: private.html:98 Uncaught TypeError: Cannot read properties of undefined (reading 'User') at private.html:98:9
atordvairn commented 2 years ago

The line uses user.grant which is deprecated

https://github.com/amark/gun/wiki/User#usergrant-deprecated