fair-rose•2y ago
Cannot use import statement outside a module
Getting the following error using the voiceflow/react-chat library:
7 Replies
fair-roseOP•2y 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.
Ye the following

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