Comments (10)
I have the exact same issue. For the record it works fine with development builds 'ng build'. However, when you do a production build with 'ng build -prod' it fails with the error below every time. Suffice to say, not being able to do production builds is a total dealbreaker. Please advice.
Date: 2017-09-22T07:30:40.830Z
Hash: f6675ae98b573f9375fd
Time: 2481ms
chunk {0} styles.317df2661241c05d1c4c.bundle.css (styles) 358 bytes {3} [initial] [rendered]
chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes {3} [initial] [rendered]
chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered]
chunk {3} inline.22b7623ed7c5ac6f9a35.bundle.js (inline) 1.45 kB [entry] [rendered]
ERROR in Error: Error encountered resolving symbol values statically. Calling function 'ControlValueAccessorProviderFactory', function calls
are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol DatePicker in C:/Us
ers/tobiassa/Projekt/FasitHubFrontend/node_modules/angular-io-datepicker/src/datepicker/datePicker.d.ts, resolving symbol DatePicker in C:/U
sers/tobiassa/Projekt/FasitHubFrontend/node_modules/angular-io-datepicker/src/datepicker/datePicker.d.ts
at Error (native)
at syntaxError (C:\Users\tobiassa\Projekt\FasitHubFrontend\node_modules@angular\compiler\bundles\compiler.umd.js:1725:34)
at simplifyInContext (C:\Users\tobiassa\Projekt\FasitHubFrontend\node_modules@angular\compiler\bundles\compiler.umd.js:24949:23)
at StaticReflector.simplify (C:\Users\tobiassa\Projekt\FasitHubFrontend\node_modules@angular\compiler\bundles\compiler.umd.js:24961:13)
from angular-io-datepicker.
Same Issue. Any updates?
You can build to prod only if aot is false: ng build --prod --aot=false
from angular-io-datepicker.
Thanks @AlexGrafic
When I set --aot=false
there is no more error.
However, We can't use aot
if we use angular-io-datepicker?
from angular-io-datepicker.
Same issue. Works if --aot=false. Can't we use the datepicker with aot?
from angular-io-datepicker.
any Solutions??
from angular-io-datepicker.
Hi,
Do we know when this can be fixed? I am having the same issue.
Thanks
from angular-io-datepicker.
@michaelezehi I will fix that on next week.
from angular-io-datepicker.
Hi @eugenesaenko I getting the same error, " --aot=false " may be a solution but the site is slowing down due to this type of build.
I think " --aot=true " compiles every thing but "--aot=false " doesn't..
so i need a fix with --aot=true
from angular-io-datepicker.
Yes. Aot is a needful feature and that can't be commented for production builds. So this datepicker should work even though with --aot=true. Please fix.
from angular-io-datepicker.
Is this bugs is fixed? I am getting this error. What happening? @eugenesaenko
from angular-io-datepicker.
Related Issues (20)
- jalali calender issue
- Error when importing DatePickerModule in the latest angular (5.0.3) HOT 5
- Date selected in calendar is different from date entered
- Implementing 2 datepicker gives error.
- Including seconds in Time Picker HOT 1
- Restricting manual enter of date and time HOT 2
- angular io picker issue while building HOT 1
- console.log left
- Uncaught Error: Unexpected value 'OverlayModule' imported by the module 'AppModule'. Please add a @NgModule annotation. HOT 2
- Critical dependency: the request of a dependency is an expression... HOT 1
- Cannot redeclare block-scoped variable 'ngDevMode' HOT 5
- Not able to display datetimepicker using ngFor loop HOT 1
- Not displaying the same date in calendar HOT 2
- Not working when upgraded the angular version to 4.4.6 and above HOT 2
- calender ui not closing
- Datepicker-panel getting created outside overlay component HOT 1
- Bug when using multiple datetimepicker widget
- Documentation correction
- Integration problem in Angular 6
- In the latest version of Firefox , the `document` click event is triggering when a `mousedown` event occurs on a `select` element while using Select2. This behavior is different from other browsers.
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 angular-io-datepicker.