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

ERROR in node_modules/@fullcalendar/core/main.d.ts(545,27): error TS1005: ',' expected. #4572

Closed
Jai-Kumaresh opened this issue Mar 22, 2019 · 12 comments

Comments

@Jai-Kumaresh
Copy link

I have error for @fullcalendar/core module in my angular6 project. Error is

ERROR in node_modules/@fullcalendar/core/main.d.ts(545,27): error TS1005: ',' expected.
node_modules/@fullcalendar/core/main.d.ts(1582,29): error TS1005: ',' expected.
node_modules/@fullcalendar/core/main.d.ts(1591,29): error TS1005: ',' expected.
node_modules/@fullcalendar/core/main.d.ts(1596,29): error TS1005: ',' expected.

Any one know that solution please tell me.

@irustm
Copy link

irustm commented Mar 22, 2019

please reproduce the minimum project in stackblitz with this error

what version typescript? local or global
@fulcalendar/core?

@philippe9
Copy link

philippe9 commented Mar 22, 2019

Same issue here

typescript version (local) 2.5.3
typescript version (global) 3.2.4
"@fullcalendar/core": "^4.0.1",
"@fullcalendar/daygrid": "^4.0.1",
"@fullcalendar/list": "^4.0.1",
"@fullcalendar/timegrid": "^4.0.1",

Please help needed

EDIT

"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0"

stackblitz LINK with my present environment https://angular-1aegtn.stackblitz.io/

@acerix
Copy link
Member

acerix commented Mar 22, 2019

Would you be able to post a runnable, stripped-down demonstration of the bug or the steps to reproduce? Would really appreciate it because the time saved reproducing will be time spent fixing.

@philippe9
Copy link

Thanks for the response, I think it is what I already done above .The only things installed above are angular basic requirements and fullcalendar but it still doesn't apprear and locally it gives the error

ERROR in node_modules/@fullcalendar/core/main.d.ts(545,27): error TS1005: ',' expected.

I also followed the steps of your link but the error continues
Here is the editor url of the above result https://stackblitz.com/edit/angular-1aegtn . Hope it helps.

@acerix
Copy link
Member

acerix commented Mar 22, 2019

Thanks, I didn't realize it was a runnable demo because the page just says "Hello Angular! Start editing to see some magic happen :)". Is there a way to see the error in stackblitz?

@philippe9
Copy link

For the CLI error, I don't know how is it possible with stackblitz if you have a tool than is better I am ready to use it.Thanks

@acerix
Copy link
Member

acerix commented Mar 22, 2019

I don't get any errors when building the TypeScript using the example project:

https://github.com/fullcalendar/typescript-example

It would help if you can provide something like that which is easy to run, or just the instructions/commands to reproduce the errors.

@irustm
Copy link

irustm commented Mar 23, 2019

@philippe9 Don't use document.addEventListener('DOMContentLoaded', in ngOnInit hook
and use typescript ^3.1.1. I'am fork you repo, and fix it: https://stackblitz.com/edit/angular-rdlpeo?file=src/app/app.component.ts


Try use ng-fullcalendar@2.0.3 https://stackblitz.com/edit/ng-fullcalendar2-demo

@philippe9
Copy link

Thanks @irustm , the problem of error TS1110: Type expected. got solved when I upgraded my local typescript version to 3.1.1 and fullcalendar appeared fine when I used ng-fullcalendar (by the way I was not aware of the existance of an angular version). But now my CLI throws this warning

@angular/compiler-cli@5.2.11 requires typescript@'>=2.4.2 <2.7.0' but 3.1.1 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.

    npm install typescript@'>=2.4.2 <2.7.0'

To disable this warning run "ng set warnings.typescriptMismatch=false".

My project still works fine with the warning but if I have a problem on my way I will come towards you, thanks again and have a good day.

@irustm
Copy link

irustm commented Mar 23, 2019

To solve this warning you can update your angular project to a later version, example angular 6 or ^7.
Or disable warning ng set warnings.typescriptMismatch=false

@elizadoolittle
Copy link

I am also seeing this same issue,
image

image
image

I used instructions from: https://fullcalendar.io/docs/angular
image

In order to replicate, you'd really just need to create a sample component, something really basic that simply imports the calendar. And install the NPM packages, and try and build.

@arshaw arshaw added TypeScript and removed Core labels Jul 29, 2019
@Sriramamoorthy
Copy link

Just updating fullcalendar packages to latest will solve the issue

@arshaw arshaw closed this as completed Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants