-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import errors when installed in Next JS project #71
Comments
For anyone else with this issue, I was able to fix it using the Next JS dynamic import after creating my voiceflow component.
|
@blackge Do you mind please posting more of the context of that ^^^ code snippet? Still having trouble figuring this out, thanks. It's saying that the component is not defined... edit: for example, I'd love to see your file at |
Oh and did you have to transpile the |
Hi @mepc36 I didn't have to transpile, just change the way it was imported to use the NextJS dynamic import function. The issue was a specific NextJS which can be quite fussy about imports. |
@blackge Could I see your Voiceflow component please? Still stuck on this, I'd really appreciate it! Even redacted would be great 👍 thanks |
Upgrading to Next.js v13 mostly fixed this. |
Great to hear. We are running 13 ourselves so that makes sense.Sent from my iPhoneOn 26 Sep 2023, at 19:11, Martin Connor ***@***.***> wrote:
Upgrading to Next.js v13 mostly fixed this.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi,
I've just installed this to my Next JS typescript project to test it out. Following the basic instructions in the React-Chat folder I'm getting an import error on multiple components on the react import:
I'm using
My library is configured to use "node" module resolution. Here is the ts.config:
The text was updated successfully, but these errors were encountered: