Infos:
- Used Zammad version: latest
- Used Zammad installation type: docker-compose
- Operating system: debian
- Browser + version: Firefox latest
Hey
I want to include the chat widget in a NextJS (ReactJS) project. I have been trying with the Next Script Component but with no luck so far. I have not included an external js library into nextjs other than from npm…
Maybe someone has done this or can give me a hint on how to do it
I added jquery types yarn add -D @types/jquery
const Component = () => {
return <>
<Script id='jQuery' src='https://code.jquery.com/jquery-3.6.0.min.js' />
<Script
id='chat'
src='https://service.domain.de/assets/chat/chat.min.js'
onLoad={() => {
new ZammadChat({
background: '#aad0e4',
fontSize: '12px',
chatId: 1,
})
}}
/>
</>
}
Browser console returns:
chat notice || Translation needed for 'Compose your message…'
Cheers
Luke