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
Thank you creating this library, it looks interesting. I am planning to develop a mobile app to integrate Essentia.js in React Native / Expo. Although it supports modern browsers, it seems to not work with React Native.
It will be great to have an example or documentation on integrating Essential.js into React Native / Expo.
The essentia-wasm.web.js may assume this is a browser environment, therefore some code failed on React Native environment.
Then I tried to import the .wasm file and pass it into the Essentia constructor directly, but Expo cannot import the raw binary file data, instead it returns the ID(?) of the imported module, I guess that's why the Essentia class fails to initiate an instance.
// metro.config.jsconfig.resolver.assetExts.push('wasm');// index.tsximportEssentiafrom'essentia.js/dist/essentia.js-core.es.js';importEssentiaWasmfrom'essentia.js/dist/essentia-wasm.web.wasm';// `EssentiaWasm` is just a number hereconstessentia=newEssentia(EssentiaWasm);^^^ TypeError: Cannotreadproperty'prototype'ofundefined
What is the issue about?
What part(s) of Essentia.js is involved?
Description
Thank you creating this library, it looks interesting. I am planning to develop a mobile app to integrate Essentia.js in React Native / Expo. Although it supports modern browsers, it seems to not work with React Native.
It will be great to have an example or documentation on integrating Essential.js into React Native / Expo.
Steps to reproduce / Code snippets / Screenshots
What I have tried:
The
essentia-wasm.web.js
may assume this is a browser environment, therefore some code failed on React Native environment.Then I tried to import the
.wasm
file and pass it into theEssentia
constructor directly, but Expo cannot import the raw binary file data, instead it returns the ID(?) of the imported module, I guess that's why theEssentia
class fails to initiate an instance.System info
Expo: 51.0.9
React Native: 0.74.1
Device: iOS Simulator iPhone 15 Pro iOS 17.2
Essentia.js: 0.1.3
The text was updated successfully, but these errors were encountered: