mario-christopher / snap-ui

Snappy Airlines : A Snap using Interactive UI Components
Apache License 2.0
0 stars 0 forks source link

Running in Flask gives Union Error #7

Open javaspeak opened 3 months ago

javaspeak commented 3 months ago

I installed flask:

 Version. 11.16.10-flask.0, Updated June 13, 2024

I then cloned the snappy airlines code from:

 https://github.com/mario-christopher/snap-ui/tree/main

I then ran:

yarn install
yarn start

and I installed the snap.

Then in metamask flask I clicked on the 3 dots and went to: Snaps

Then I saw:

 Snappy Airlines
 https://localhost:8080/

If I click on it I get:

 Error with Snappy Airlines
 Contact the creators of Snappy Airlines for further support.
Assertion failed: Expected the value to satisfy a union of `object | object`, but received: [object Object].

Maybe am missing something or maybe this is a bug. Also tried emailing you.

mario-christopher commented 3 months ago

Hi @javaspeak , As of today, the new UI components are not yet available in released version of MetaMask Flask or Stable. You can pick up a Developer Build from the MetaMask Github Site : 11.16.3-flask.0

image

You will then need to install the extension from the downloaded folder using the "Load Unpacked" option in Google Chrome. image

Please let me know if that works for you.

Thanks.