ProvableHQ / sdk

A Software Development Kit (SDK) for Zero-Knowledge Transactions
https://provable.tools
GNU General Public License v3.0
590 stars 471 forks source link

An error, how to solve it? #832

Open my-Gem opened 10 months ago

my-Gem commented 10 months ago

2023-12-30_170857

onetrickwolf commented 10 months ago

Hey the SDK currently requires top-level await which not supported by the target you have configured: https://caniuse.com/?search=top%20level%20await

Depending on your build system, would recommend just bumping the browser target.

If you are using an aleo template could you specify which template and which command you are using? If you are using vite:build that is currently unsupported and I'd recommend using the default build due to this note about vite and webpack: Note: Webpack is currently used for production builds due to a https://github.com/vitejs/vite/issues/13367 with Vite related to nested workers.

Kochan4ik commented 2 months ago

gm