Git Product home page Git Product logo

Comments (4)

technikhil314 avatar technikhil314 commented on June 1, 2024

no that's right you do not need to install those. I did not realize I have left it there in scripts, I have removed it. Please take latest version. And thank you for pointing it out. And please close the issue if it solves you problem, and let me know if you have any trouble with the package.

from angular-components.

james-criscuolo avatar james-criscuolo commented on June 1, 2024

Next problem I hit seems to be another small change, that I believe only matters with webpack, but should be beneficial in general. The error reads:

Uncaught Error: moduleId should be a string in "DaterangepickerComponent". See https://goo.gl/wIDDiL for more information.
If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.

Angular-cli has an open issue about it: angular/angular-cli#3576. I haven't looked into it deeply enough to determine if this is a fault of webpack or angular, but just adding .toString() to module.id in the components should fix it. It looks like the typescript -> javascript conversion adds this metadata automatically, so maybe manually including it in typescript would be the solution.

I did test, and editing in the .toString() to daterangepicker-component.js and calendar-component.js does fix this, and I am able to successfully load the daterangepicker at that point.

from angular-components.

technikhil314 avatar technikhil314 commented on June 1, 2024

sure i wll remove the dependancy on it. webpack seems to give problem with it. Please take version 1.1.20 I have removed dependacy on module.id. Thank you for your support.

from angular-components.

technikhil314 avatar technikhil314 commented on June 1, 2024

@james-criscuolo Closing the issue. Assuming your issue is solved.

from angular-components.

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.