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

Can't resolve all parameters for CalendarDayView: (ChangeDetectorRef, ?) #66

Closed
iamyojimbo opened this issue Oct 4, 2016 · 6 comments
Closed

Comments

@iamyojimbo
Copy link

Thanks for the great work on this library and it's exactly what I need!

I do have a problem loading the library, however and I see the error:

Can't resolve all parameters for CalendarDayView: (ChangeDetectorRef, ?)

I also see this warning:

./~/angular2-calendar/dist/umd/angular2-calendar.js
Cannot find SourceMap 'positioning.js.map': Error: Can't resolve './positioning.js.map' in '/Users/savvas/code/tlbiolabs/node_modules/angular2-calendar/dist/umd'
 @ ./src/app/app.module.ts 14:0-94
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

I have imported like so:

imports: [
        BrowserModule,
        CommonModule,
        CalendarModule,
        routing,
    ],

and providers like so:

providers: [
        ...
        CalendarEventTitle,
        CalendarDateFormatter,
    ],

Any idea where I'm going wrong?

@mattlewis92
Copy link
Owner

It looks like you don't have the Locale ID set, what version of angular are you running?

On 4 Oct 2016, at 23:49, Savvas Nicholas notifications@github.com wrote:

Thanks for the great work on this library and it's exactly what I need!

I do have a problem loading the library, however and I see the error:

Can't resolve all parameters for CalendarDayView: (ChangeDetectorRef, ?)
I also see this warning:

./~/angular2-calendar/dist/umd/angular2-calendar.js
Cannot find SourceMap 'positioning.js.map': Error: Can't resolve './positioning.js.map' in '/Users/savvas/code/tlbiolabs/node_modules/angular2-calendar/dist/umd'
@ ./src/app/app.module.ts 14:0-94
@ ./src/app/index.ts
@ ./src/main.ts
@ multi main
I have imported like so:

imports: [
BrowserModule,
CommonModule,
CalendarModule,
routing,
],
and providers like so:

providers: [
...
CalendarEventTitle,
CalendarDateFormatter,
],
Any idea where I'm going wrong?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@iamyojimbo
Copy link
Author

Yes after some digging it looked like that wasn't being injected but I've seen no docs on it really.

I am on RC-5 still. What do I need?

@mattlewis92
Copy link
Owner

Hmm it should work on RC5, but I don't have any rc5 apps to test it with, try doing {provide: LOCALE_ID, useValue: 'en'} in the module that uses the calendar. Alternatively use 0.1.x of this module until you upgrade to post rc5.

On 5 Oct 2016, at 00:18, Savvas Nicholas notifications@github.com wrote:

Yes after some digging it looked like that wasn't being injected but I've seen no docs on it really.

I am on RC-5 still. What do I need?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@iamyojimbo
Copy link
Author

Thanks. I tried something similar, but do you know what exports LOCALE_ID?

@mattlewis92
Copy link
Owner

import {LOCALE_ID} from '@angular/core';

mattlewis92 pushed a commit that referenced this issue Oct 5, 2016
@mattlewis92
Copy link
Owner

Had a dig into this tonight and couldn't get it working with RC5, I think along the way I must of accidentally introduced a breaking change. My advice if {provide: LOCALE_ID, useValue: 'en'} doesn't work would be to use 0.1.x of this module which was definitely working with RC5, or just wait until your app has been updated to the stable version of angular.

AndersTornkvist pushed a commit to AndersTornkvist/angular-calendar that referenced this issue Dec 29, 2020
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