You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Import of @n8n/chat fails with the following error when using the boilerplate example setup.
src/App.vue:5:28 - error TS7016: Could not find a declaration file for module '@n8n/chat'. '/Users/artushin/src/github.com/n8n-io/n8n/packages/@n8n/chat/dist/chat.es.js' implicitly has an 'any' type.
There are types at '/Users/artushin/src/github.com/artushin/home/frank-chat/node_modules/@n8n/chat/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@n8n/chat' library may need to update its package.json or typings.
To Reproduce
Steps to reproduce the behavior:
Setup a new vite project (use typescript and vue)
Update code as per example instructions
Run npm run build in the example project
Expected behavior
Build succeeds
Environment (please complete the following information):
OS: Mac OSX
n8n Version @n8n/chat 0.6.0
Node.js Version v20.10.0
Additional context
Pretty sure you just don't need the exports section in the dist/package.json.
The text was updated successfully, but these errors were encountered:
Perfect thanks, Not sure what is going on there but I have created a dev ticket so someone can look into it. We are tracking the issue internally as ADO-1650, For now I know that some folk have had sucess directly using the cdn to add the chat widget to their sites so that could be an option for you.
Describe the bug
Import of @n8n/chat fails with the following error when using the boilerplate example setup.
To Reproduce
Steps to reproduce the behavior:
npm run build
in the example projectExpected behavior
Build succeeds
Environment (please complete the following information):
Additional context
Pretty sure you just don't need the exports section in the dist/package.json.
The text was updated successfully, but these errors were encountered: