useful-bronze•16mo ago
Cannot use import statement outside a module
Getting the following error using the voiceflow/react-chat library:
7 Replies
useful-bronzeOP•16mo ago
Extremely basic chat component in my frontend
https://pastebin.com/j92Ld1j3
@Tico | Voiceflow Assistant any advice?
@W. Williams (SFT)
Is it OK if I tag you like this?
managed to get the components working like so:
but not for useRuntime
Cannot use import statement outside a module
if trying to require() or import it
otherwise I get "useRuntime is not a function" if trying to import dynamicallyI'm not gonna lie, I haven't look at the react-chat in forever. Let's see if @MikeG knows.
generous-apricot•16mo ago
Ye the following

generous-apricot•16mo ago
@Deleted User
useful-bronzeOP•16mo ago
OK thanks Ill try that
Do you hav a version number?
I'm installing it as an NPM package in a nextjs repo
generous-apricot•16mo ago
no clue unfortunately, I set it up before all this happened
useful-bronzeOP•16mo ago
Ill wait for alex' reply
@SuperZooper just trying to use this as a package in a nextjs app and getting some errors
anyone?