Comments (17)
hi @CapriceLi thanks for the report. I will fix that during the weekend, if you find solution before please provide a PR. I am very busy currently and cannot do it before weekend.
from ng-daterangepicker.
from ng-daterangepicker.
Hi Jan,
As I noticed, you have approved my pr and merging has been automate completed. I'm not sure about the process, but will you release a latest package in npm so that i can update?
from ng-daterangepicker.
I did already. check version 0.3.0
. thanks for the fix!
from ng-daterangepicker.
With pleasure~
from ng-daterangepicker.
Hi,
Sorry to bother again, but when I tried to build my project with the updated ng-daterangepicker, it failed and the error message is like
'ERROR in Unexpected value 'NgDateRangePickerModule in /Users/Caprice/Documents/xxxxx/node_modules/ng-daterangepicker/lib/src/ng-daterangepicker/ng-daterangepicker.module.d.ts' imported by the module 'AppModule in /Users/Caprice/Documents/xxxxx/src/app/app.module.ts'. Please add a @NgModule annotation.'
I'm not very sure, but is it something wrong occurs at your side?
Looking forward to your response.
from ng-daterangepicker.
yes I accidentaly published .d.ts
files, please try again in 5min.
from ng-daterangepicker.
okay try now please
from ng-daterangepicker.
still failed...
'zone.js:654 Unhandled Promise rejection: Failed to load ng-daterangepicker.component.html ; Zone: ; Task: Promise.then ; Value: Failed to load ng-daterangepicker.component.html undefined'
from ng-daterangepicker.
please use @angular/cli
or @ngtools/webpack
.
from ng-daterangepicker.
well.. I am using @angular/cli to scaffold my project right now. What do you exactly mean by using @angular/cli?
from ng-daterangepicker.
not sure why it is then looking for template file while it is already compiled and inlined. tought you are using systemjs. can you show me how do you import the module?
from ng-daterangepicker.
sure.
test.component.ts
import { NgDateRangePickerOptions } from 'ng-daterangepicker';
app.module.ts
import { NgDateRangePickerModule } from 'ng-daterangepicker';
..
@NgModule({
...,
imports: [...,NgDateRangePickerModule,]
It's basically the same as when I used version 0.2.0. But when I used 0.2.0 it works just fine.
from ng-daterangepicker.
Hi,
I misunderstood a little bit of your last comment. For your information, I'm not using system.js. I tried to implement 0.3.1 package on other projects, but the results seems the same.
So.. are you gonna fix this?
from ng-daterangepicker.
hi @CapriceLi. sure I will check whats going on, maybe the module is not compiled alright.
from ng-daterangepicker.
@CapriceLi I solved it by adding
"paths": {
"@ng-daterangepicker/*": ["../node_modules/ng-daterangepicker/src/ng-daterangepicker"]
}
to src/tsconfig.app.json
configuration.
Then I used
// app.module.ts
import { NgDateRangePickerModule } from '@ng-daterangepicker/ng-daterangepicker.module';
// app.component.ts
import { NgDateRangePickerOptions } from '@ng-daterangepicker/ng-daterangepicker.component';
as imports.
I am attaching sample angular-cli
project for reference. I hope that helps!
proj.zip
from ng-daterangepicker.
Perfectly works now, thank you so much!
from ng-daterangepicker.
Related Issues (20)
- Changelog and versioning
- How can I display only single date ?.. HOT 1
- CSS not loaded HOT 1
- Cannot register onChange callback
- set min and max dates HOT 1
- disable input field
- Bulma seems not working HOT 1
- How to override the syle?
- cant change the styles of calendar-container
- Setting default Date Range HOT 2
- Month display after selecting by shortcut
- How to open / close manually? HOT 2
- Error File " " is not under rootDir''. rootDir is expected to contain all source files.
- Won't compile without -aot
- Datepicker is not updating the ngmodel value with default selection. HOT 1
- Demo link is not working HOT 2
- Add new range HOT 1
- year selection
- Custom Date Range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-daterangepicker.