Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate type definition file for jquery #39

Open
lesliesu opened this issue May 27, 2017 · 2 comments
Open

Duplicate type definition file for jquery #39

lesliesu opened this issue May 27, 2017 · 2 comments

Comments

@lesliesu
Copy link

lesliesu commented May 27, 2017

In my package.json file, I have install "@types/jquery"as a development library; which worked fine before I installed ng2-fullcalendar.

Now if I try to compile the project, I got the following errors:

`
ERROR in [at-loader] ./node_modules/@types/jquery/index.d.ts:3786:5
TS2300: Duplicate identifier 'export='.

ERROR in [at-loader] ./node_modules/angular2-fullcalendar/node_modules/@types/jquery/index.d.ts:745:5
TS2374: Duplicate string index signature.

ERROR in [at-loader] ./node_modules/angular2-fullcalendar/node_modules/@types/jquery/index.d.ts:3351:5
TS2375: Duplicate number index signature.

ERROR in [at-loader] ./node_modules/angular2-fullcalendar/node_modules/@types/jquery/index.d.ts:3779:5
TS2300: Duplicate identifier 'export='.
`

@lesliesu
Copy link
Author

I have tried to remove @types/jquery from dev dependencies, which caused other errors.

Also I have tried tsconfig paths option, which worked for others as discussed at here:

But not worked for me.

I turned into manually deleted node_modules folder under angular2-fullcalendar directory. And that worked.

@DarioN1
Copy link

DarioN1 commented Sep 10, 2021

Like @lesliesu I had to manually delete node_modules folder under angular2-fullcalendar directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants