https://discord.gg/botpress logo
Webchat react components build issues
# 🤝help
f
I am currently facing problems building my nextJS React application with
@botpress/webchat@3.2.12
The error I am getting while building the app is as follows:
Copy code
/node_modules/@botpress/webchat/dist/index.js:23718:1
Module not found: Invalid generator object. Asset Modules Plugin has been initialized using a generator object that does not match the API schema.
 - generator has an unknown property 'filename'. These properties are valid:
   object { binary?, dataUrl? }
   -> Generator options for asset/inline modules.
  23716 | }), jY = {
  23717 |   // Optimized OGG file (4.4KB instead of 124KB WAV)
> 23718 |   chatMessageNotification: new URL("data:audio/ogg;base64
There seems to be no documentation on how to build this or what kind of build system is required. I also noticed in the distributed webchat backend that the source code still contains an import to a
style.css
which is not common in a ready to use component package. There is also no documentation anywhere on this. Unfortunately the
@botpress/webchat
also doesn't seem to be open source the repository is pointing to an unreachable location in github. So there is also no easy way to look into this myself. Did anyone else face a similar issue?
l
Will try getting some insight and get back @future-notebook-73286 What kind of app are you building? Any additional info would help 🙂
f
thanks! Its a pretty standard nextjs app with a webpack build.