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
I have an Expo application that I created from scratch npx create-expo-app@latest ./ --template and added a function to touch LLama model with this.
importReplicatefrom'replicate';exportasyncfunctiongetStreamOutput(){constreplicate=newReplicate({auth: process.env.EXPO_PUBLIC_REPLICATE_API,});constinput={prompt: "Tina has one brother and one sister. How many sisters do Tina's siblings have?",max_tokens: 1024,};try{// Run the model and return the result without streamingconstoutput=awaitreplicate.run('meta/meta-llama-3.1-405b-instruct',{ input });returnoutput.join("");// Combine the output into a single string}catch(error){console.error('Error getting prediction:',error);throwerror;}}
I get error
ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
in the terminal and my ios emulator shows property error from 'TransformStream' doesn't exist
and the same goes when i try with android emulator.
My Expo SDK is 51
The text was updated successfully, but these errors were encountered:
Hi @Ahelsamahy. Sorry for the late response. Can you try adding the web-streams-polyfill package dependency and let me know if that resolves your error?
Hi all,
I have an Expo application that I created from scratch
npx create-expo-app@latest ./ --template
and added a function to touch LLama model with this.I get error
in the terminal and my ios emulator shows
property error from 'TransformStream' doesn't exist
and the same goes when i try with android emulator.
My Expo SDK is
51
The text was updated successfully, but these errors were encountered: