Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token 'export' #96

Open
dgoodua opened this issue Nov 29, 2022 · 8 comments
Open

Unexpected token 'export' #96

dgoodua opened this issue Nov 29, 2022 · 8 comments

Comments

@dgoodua
Copy link

dgoodua commented Nov 29, 2022

SyntaxError: Unexpected token 'export'

at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/alex/Projects/Other/Aptos-NFT-Mint/mint-site/node_modules/@manahippo/aptos-wallet-adapter/dist/WalletAdapters/MsafeWallet.js:16:24)
at Module._compile (node:internal/modules/cjs/loader:1105:14) {

page: '/'
}

MsafeWallet.js:

const msafe_iframe_1 = require("msafe-iframe");`

msafe-iframe:

export * from './MsafeServer';
export * from './MsafeWallet';
export * from './WalletAPI';

@dgoodua dgoodua closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2022
@dgoodua dgoodua reopened this Nov 29, 2022
@devonbeard
Copy link

+1 to this

@tom-hippo
Copy link
Contributor

@dgoodua can you explain a little bit more? where and when do you encounter this issue and how to reproduce it?

@gregshen0925
Copy link

+1 to this

@gregshen0925
Copy link

@dgoodua can you explain a little bit more? where and when do you encounter this issue and how to reproduce it?

This happens when using Nextjs. Right after I imported wallets from @manahippo/aptos-wallet-adapter, new Wallets, and wrapped children with provider. It works few weeks ago

@tom-hippo
Copy link
Contributor

I believe it is the issue of msafe-iframe package. I have reported the issue to their repo.
https://github.com/Momentum-Safe/msafe-iframe/issues/5

@gnocchi6
Copy link
Contributor

gnocchi6 commented Dec 7, 2022

Can confirm this occurs on @manahippo/aptos-wallet-adapter v1.0.3, but not v1.0.2.

Probably best to revert the dependency change that introduced this until the issue in msafe-iframe is resolved.

LeviHHH added a commit to Momentum-Safe/aptos-wallet-adapter that referenced this issue Dec 12, 2022
@LeviHHH
Copy link
Contributor

LeviHHH commented Dec 13, 2022

I am the developer of msafe-iframe, we apologize for any problems caused by this issue, I think this issue has been fixed by #105.

@LeviHHH
Copy link
Contributor

LeviHHH commented Dec 13, 2022

Can confirm this occurs on @manahippo/aptos-wallet-adapter v1.0.3, but not v1.0.2.

Probably best to revert the dependency change that introduced this until the issue in msafe-iframe is resolved.

Could you help test @manahippo/aptos-wallet-adapter v1.0.3 again? We have released a new version of the npm package to address this issue. @gnocchi6 @dgoodua

tom-hippo pushed a commit that referenced this issue Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants