instead, and it then worked without issue. Locally using a development server and not a build, either version of the import worked.
We are using Vite (so rollup, esbuild, etc.). I'm assuming react-chatbot-kit's build/index.js is perhaps not constructed in a way that properly supports the default export of Chatbot. We are using many dozens of other packages that do not have this problem, and our Vite config is essentially the default, so it seems like there is a lower-level issue in the assets published for react-chatbot-kit.
When using the import:
and trying to utilize/mount the component in a
yarn build
built production version of an app, it leads to the following error:or simply:
Based on this StackOverflow post, we changed our import to:
instead, and it then worked without issue. Locally using a development server and not a build, either version of the import worked.
We are using Vite (so rollup, esbuild, etc.). I'm assuming react-chatbot-kit's
build/index.js
is perhaps not constructed in a way that properly supports the default export ofChatbot
. We are using many dozens of other packages that do not have this problem, and our Vite config is essentially the default, so it seems like there is a lower-level issue in the assets published forreact-chatbot-kit
.Thanks for building and documenting this library!