fullcalendar / fullcalendar-angular

The official Angular component for FullCalendar
https://fullcalendar.io/docs/angular
MIT License
1.08k stars 176 forks source link

Getting this error while trying to run the cloned code #431

Closed vivekaviva closed 1 year ago

vivekaviva commented 1 year ago

Module not found: Error: Can't resolve '@fullcalendar/angular' in 'D:\Git\fullcalendar-angular\app\src'

Error: app/src/app.component.html:3:1 - error NG8001: 'full-calendar' is not a known element:

  1. If 'full-calendar' is an Angular component, then verify that it is part of this module.
  2. If 'full-calendar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
cretara commented 1 year ago

Did you import FullCalendarModule in any like this one indicated in documentation (here is used main AppModule of Angular app)

@NgModule({ declarations: [ AppComponent, ... ], imports: [ BrowserModule, FullCalendarModule // register FullCalendar with your app ], providers: [...], bootstrap: [AppComponent] }) export class AppModule { }

What is Angular version u are using?

vivekaviva commented 1 year ago

Yes, I have imported

On Fri, May 26, 2023 at 12:31 PM Pier Daniele Cretara < @.***> wrote:

Did you import FullCalendarModule in any like this one indicated in documentation (here is used main AppModule of Angular app)

@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, FullCalendarModule // register FullCalendar with your app ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }

— Reply to this email directly, view it on GitHub https://github.com/fullcalendar/fullcalendar-angular/issues/431#issuecomment-1563900657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIM4EWFQVSHNZKTP2DGWBLXIBIOJANCNFSM6AAAAAAYPXNUD4 . You are receiving this because you authored the thread.Message ID: @.***>

cretara commented 1 year ago

Yes, I have imported On Fri, May 26, 2023 at 12:31 PM Pier Daniele Cretara < @.> wrote: Did you import FullCalendarModule in any like this one indicated in documentation (here is used main AppModule of Angular app) @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, FullCalendarModule // register FullCalendar with your app ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } — Reply to this email directly, view it on GitHub <#431 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIM4EWFQVSHNZKTP2DGWBLXIBIOJANCNFSM6AAAAAAYPXNUD4 . You are receiving this because you authored the thread.Message ID: @.>

If u have correctly imported, i suggest to perform a delete of node_modules folder, followed by a npm install to perform a clean install of all packages of your project

acerix commented 1 year ago

Would you be able to post a runnable, stripped-down demonstration of the bug? Would really appreciate it because the time saved reproducing will be time spent fixing. Also, this repo is not used for issues, please use the main repo.