Giter Site home page Giter Site logo

Comments (10)

tobiassalem avatar tobiassalem commented on August 10, 2024 2

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.

AlexObreja avatar AlexObreja commented on August 10, 2024 2

Same Issue. Any updates?
You can build to prod only if aot is false: ng build --prod --aot=false

from angular-io-datepicker.

Taewa avatar Taewa commented on August 10, 2024

Thanks @AlexGrafic
When I set --aot=false there is no more error.
However, We can't use aotif we use angular-io-datepicker?

from angular-io-datepicker.

Antony007 avatar Antony007 commented on August 10, 2024

Same issue. Works if --aot=false. Can't we use the datepicker with aot?

from angular-io-datepicker.

helfgod avatar helfgod commented on August 10, 2024

any Solutions??

from angular-io-datepicker.

michaelezehi avatar michaelezehi commented on August 10, 2024

Hi,

Do we know when this can be fixed? I am having the same issue.

Thanks

from angular-io-datepicker.

eugenesaenko avatar eugenesaenko commented on August 10, 2024

@michaelezehi I will fix that on next week.

from angular-io-datepicker.

vignesh2694 avatar vignesh2694 commented on August 10, 2024

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.

shivasuriya avatar shivasuriya commented on August 10, 2024

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.

gisarjun avatar gisarjun commented on August 10, 2024

Is this bugs is fixed? I am getting this error. What happening? @eugenesaenko

from angular-io-datepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.