vue-advanced-chat: Duplicate identifier 'export=' With Vue Typescript
Describe the bug
I have added this package in Vue TypeScript project and I get the error while building the Vue project using the “npm run build
” command.
node_modules/vue-advanced-chat/types/vue-advanced-chat.common.d.ts
Error: Duplicate identifier 'export='.
I was using the version 0.5.3 without any issues. but, after upgrading it to 0.6.5
. I get the above error.
Package versions:
“vue”: “^2.6.12”, “typescript”: “^3.9.7”, “eslint”: “^5.16.0”,
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16
@antoine92190 You can build this repo to reproduce the issue: https://github.com/hanatharesh2712/vue-demo-app
@kanemotos currently, the workaround is the import the component using
require
.const ChatWindow: any = require('vue-advanced-chat').default;
Could you check if the issue is solved when installing the latest git version:
npm i github:antoine92190/vue-advanced-chat
me too.
I found this code.
node_modules/vue-advanced-chat/types/vue-advanced-chat.common.d.ts
I have deleted a second line for work around. But of course, the error comes again when I do
yarn install
(ornpm install
).