warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

SyntaxError: Unexpected token 'export' from "readState" #235

Closed 1618employment closed 2 years ago

1618employment commented 2 years ago
Screenshot 2022-10-04 162728

Encounter this issue when running your Academy Ardit Final demo

Fails the second test 'should read Ardit state'

using web bundle 1.2.13 could use an un-minified version to help trouble shoot!

1618employment commented 2 years ago

never mind, some how fixed it?

asiaziola commented 2 years ago

Hey @1618employment! We prepared multiple Warp versions just so all the potential environments are supported. You can view the versions in package.json https://github.com/warp-contracts/warp/blob/main/package.json#L6

So in order to use e.g. mjs version, you can import Warp like so:

import { WarpFactory } from 'warp-contracts/mjs';

You can see some implementations (for both node and web environment) in a dedicated repository -> https://github.com/warp-contracts/bundlers