chatwoot
chatwoot copied to clipboard
Partytown doesn't work with Chatwoot
Describe the bug
https://github.com/productdevbookcom/chatwoot/assets/102629955/977063a1-eec6-4fb9-a7bd-b9f80daa78b0
I think the problem is in Iframe
Nuxt 3
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
"nuxt-purgecss",
"@nuxt/image",
"@nuxtjs/partytown",
"@productdevbook/chatwoot",
],
partytown: {
debug: true,
forward: [
"chatwootSDK.run",
"chatwootSDK.run",
"$chatwoot.toggle",
"$chatwoot.toggle",
"$chatwoot.isOpen",
"$chatwoot.isOpen",
"$chatwoot.websiteToken",
"$chatwoot.websiteToken",
],
},
.....
chatwoot: {
init: {
websiteToken: "exampleToken",
baseUrl: "https://chat.hostname.com",
},
// If this is loaded you can make it true, https://github.com/nuxt-modules/partytown
partytown: true,
},
});
Reproduction
N/A
System Info
nuxt 3
Used Package Manager
yarn
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
cc: https://github.com/chatwoot/chatwoot/issues/5295