Giter VIP home page Giter VIP logo

Comments (21)

jpike88 avatar jpike88 commented on July 16, 2024 7

This has nothing to do with my package.json, this issue is in the package.json of the latest release of @angular-material-components/datetime-picker on npm.

This is from its package.json:

"peerDependencies": {
    "@angular/platform-browser": "0.0.0-NG",
    "@angular/common": "0.0.0-NG",
    "@angular/core": "0.0.0-NG",
    "@angular/forms": "0.0.0-NG",
    "@angular/material": "0.0.0-PLACEHOLDER",
    "@angular/cdk": "0.0.0-PLACEHOLDER",
    "tslib": "0.0.0-TSLIB"
  },

from angular-material-components.

jpike88 avatar jpike88 commented on July 16, 2024 4

I feel like my comments aren't event being read. Let me repeat...

This has nothing to do with the version of people's angular. The problem is with this library.

step 1: Download latest @angular-material-components/datetime-picker from npm.
step 2: Look at the package.json in the downloaded package.
step 3: Release a new version where the package.json isn't filled with dummy data.

from angular-material-components.

ThisIsDemetrio avatar ThisIsDemetrio commented on July 16, 2024 2

Is there any kind of support you'll provide to those legacy application that uses older versions of Angular?
I'm finding myself with an error on an Angular 8 application, and I wish there's a way to release a 2.0.5 just to update the package.json of the library instead to have to fork the project by myself just for the sake of it.

from angular-material-components.

Magoloric avatar Magoloric commented on July 16, 2024 2

This is still a problem in 2.x. I have no ability nor will to upgrade angular for the sake of just this component. Not willing to support legacy versions is understandable, but then you should remove older versions from the table, so developers are not misled into believing that they can use it without issues on older versions of Angular. Because 2.x versions are simply broken because of this issue.

If there's any alternative solutions, do let me know.

from angular-material-components.

Mihirpatel2005 avatar Mihirpatel2005 commented on July 16, 2024 2

Very good web page, thank oneself for the exciting material for guaranteed I am going to be back.https://betterprogramming.pub/the-step-by-step-guide-to-understanding-and-adopting-npm-7-914504f7090f

from angular-material-components.

vshmoylov avatar vshmoylov commented on July 16, 2024 2

@roma2341 this is because author of the package explicitly broke old versions to "deprecate" them in such way. If you are looking for a solution to overcome this, you can try running npm install --legacy-peer-deps

from angular-material-components.

h2qutc avatar h2qutc commented on July 16, 2024

Can you provide your package.json please so that I can reproduce this bug ?

from angular-material-components.

krishna217 avatar krishna217 commented on July 16, 2024

Facing same issue

Can you provide your package.json please so that I can reproduce this bug ?

I'm also facing the same issue. Issue is in the latest release on npm

from angular-material-components.

jpike88 avatar jpike88 commented on July 16, 2024

Ugh I’ve had enough of how slow things are going here. This is basic stuff. I’m going to fork if in a week this isn’t resolved.

from angular-material-components.

h2qutc avatar h2qutc commented on July 16, 2024

Can you let me know which version of angular and angular material in your application ?

from angular-material-components.

krishna217 avatar krishna217 commented on July 16, 2024

Can you let me know which version of angular and angular material in your application ?

Try this package.json
{
"name": "datepicker-test",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular-material-components/datetime-picker": "^2.0.4",
"@angular/animations": "~9.1.3",
"@angular/cdk": "^9.2.4",
"@angular/common": "~9.1.3",
"@angular/compiler": "~9.1.3",
"@angular/core": "~9.1.3",
"@angular/forms": "~9.1.3",
"@angular/material": "^9.2.4",
"@angular/platform-browser": "~9.1.3",
"@angular/platform-browser-dynamic": "~9.1.3",
"@angular/router": "~9.1.3",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.3",
"@angular/cli": "~9.1.3",
"@angular/compiler-cli": "~9.1.3",
"@angular/language-service": "~9.1.3",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"node-sass": "^4.14.1",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3"
}
}

from angular-material-components.

h2qutc avatar h2qutc commented on July 16, 2024

@krishna217 I don't see @angular/material and @angular/cdk ? Did you miss those packages ?

from angular-material-components.

krishna217 avatar krishna217 commented on July 16, 2024

@krishna217 I don't see @angular/material and @angular/cdk ? Did you miss those packages ?

Sorry about that i updated the my comment with package.json

from angular-material-components.

krishna217 avatar krishna217 commented on July 16, 2024

@h2qutc Any progress on this ? Also while upgrading to angular 10 it throws an error due to these incompatible dependencies.

from angular-material-components.

jpike88 avatar jpike88 commented on July 16, 2024

@krishna217 I don't see @angular/material and @angular/cdk ? Did you miss those packages ?

What???? Why does that matter? What do those libraries have to do with the problem? Please read what I wrote earlier in the thread because this is becoming a waste of everyone’s time.

from angular-material-components.

llyrowenjones avatar llyrowenjones commented on July 16, 2024

I'm also facing the same issue;

npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular-material-components/[email protected]
npm ERR! peer dep missing: [email protected], required by @angular-material-components/[email protected]

from angular-material-components.

llyrowenjones avatar llyrowenjones commented on July 16, 2024

Issue has been resolved in version 4.0.0, thanks!

#65 (comment)

from angular-material-components.

shalltalk avatar shalltalk commented on July 16, 2024

Version 2.0.4 still has this problem. Any plan to fix it? Thanks.
https://github.com/h2qutc/angular-material-components/blob/master/projects/datetime-picker/package.json

from angular-material-components.

shalltalk avatar shalltalk commented on July 16, 2024

And a reminder, without the fix, application that uses this lib cannot be dockerized. Please take a look when you get a chance @h2qutc

from angular-material-components.

vshmoylov avatar vshmoylov commented on July 16, 2024

@Magoloric @shalltalk As a workaround for this particular case, you can use --legacy-peer-deps flag for npm install command so npm will ignore broken peer dependencies (not a best approach though).
Also, there is a possibility to add library code from node_modules to some folder of your repo, for example, lib/@angular-material-components/datetime-picker. Then patch package.json and do local npm install from there: npm i --save ./lib/@angular-material-components/datetime-picker.

from angular-material-components.

roma2341 avatar roma2341 commented on July 16, 2024

Only i don't understand what mean "0.0.0-NG" ?

from angular-material-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.