You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.component.ts:15 ERROR Error: Uncaught (in promise): RuntimeError: Aborted(both async and sync fetching of the wasm failed)
RuntimeError: Aborted(both async and sync fetching of the wasm failed)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has anyone tried setting up wallet-core in angular?
trying to init wasm like this:
import { Component, OnInit } from '@angular/core';
import { initWasm, TW } from '@trustwallet/wallet-core';
@component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
async ngOnInit() {
await initWasm();
console.log(TW);
}
title = 'trust-wallet-app';
}
gives me the following error in the browser's console : app.component.ts:15 GET http://localhost:4200/wallet-core.wasm 404 (not found)
and:
app.component.ts:15 ERROR Error: Uncaught (in promise): RuntimeError: Aborted(both async and sync fetching of the wasm failed)
RuntimeError: Aborted(both async and sync fetching of the wasm failed)
Beta Was this translation helpful? Give feedback.
All reactions