현상

wasm 파일을 생성하고, ionic serve 실행 시 웹 콘솔에서 아래와 같은 이슈가 발생

wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #34 "a" "I": function import requires a callable

 

원인

https://github.com/capacitor-community/sqlite/issues/631

 

feat: update to sql.js 1.13.0 · Issue #631 · capacitor-community/sqlite

Updating sql.js to 1.13.0 causes errors like "LinkError: WebAssembly.instantiate(): Import sql-js/sql.js#34 "a" "I": function import requires a callable" Either jeep-sqlite is causing it or the sql...

github.com

 

해결책

package.json에 버전 고정

"sql.js": "1.12.0",
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기