Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-cookie-service dependency broken (regression) #17073

Closed
1 task done
vicpermir opened this issue Nov 20, 2021 · 3 comments · Fixed by #17074
Closed
1 task done

ngx-cookie-service dependency broken (regression) #17073

vicpermir opened this issue Nov 20, 2021 · 3 comments · Fixed by #17074
Labels
area: bug 🐛 theme: angular theme: dependencies Pull requests that update a dependency file
Milestone

Comments

@vicpermir
Copy link
Contributor

vicpermir commented Nov 20, 2021

Overview of the issue

#16906 broke release 7.4.0 due to unsatisfied @angular/common@13.0.0 dependency.

Motivation for or Use Case

Should work. Deploy tests to detect this?

Reproduce the error

To reproduce just create a new empty angular project with session auth and websocket and it explodes with this:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app-1@0.0.1-SNAPSHOT
npm ERR! Found: @angular/common@12.2.12
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"12.2.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^13.0.0" from ngx-cookie-service@13.0.0
npm ERR! node_modules/ngx-cookie-service
npm ERR!   ngx-cookie-service@"13.0.0" from the root project
Related issues
Suggest a Fix

Either fast track the Angular 13 upgrade or revert ngx-cookie-service back to version 12.

JHipster Version(s)

7.4.0
regression

JHipster configuration

INFO! Using JHipster version installed globally
Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
app-1@0.0.1-SNAPSHOT O:\GitHub\test
`-- (empty)

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "authenticationType": "session",
    "cacheProvider": "ehcache",
    "clientFramework": "angularX",
    "serverPort": "8080",
    "serviceDiscoveryType": false,
    "skipUserManagement": false,
    "withAdminUi": true,
    "baseName": "app1",
    "buildTool": "maven",
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "jhiPrefix": "jhi",
    "languages": ["en"],
    "messageBroker": false,
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "testFrameworks": [],
    "websocket": "spring-websocket",
    "enableGradleEnterprise": false,
    "gradleEnterpriseHost": "",
    "jhipsterVersion": "7.4.0",
    "packageFolder": "com/mycompany/myapp",
    "packageName": "com.mycompany.myapp",
    "clientPackageManager": "npm",
    "dtoSuffix": "DTO",
    "entitySuffix": "",
    "reactive": false,
    "clientTheme": "none",
    "clientThemeVariant": "",
    "applicationType": "monolith",
    "applicationIndex": 0,
    "entities": ["A", "B", "C"],
    "skipCheckLengthOfIdentifier": false,
    "skipFakeData": false,
    "blueprints": [],
    "otherModules": [],
    "pages": [],
    "nativeLanguage": "en",
    "creationTimestamp": 1637451574642,
    "rememberMeKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "devServerPort": 4200,
    "lastLiquibaseTimestamp": 1637451754000
  }
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity A
entity B
entity C
dto A, B, C with mapstruct
paginate A, B, C with infinite-scroll
service A, B, C with serviceClass

Environment and Tools

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)

git version 2.29.2.windows.1

node: v16.13.0

npm: 8.1.4

No change to package.json was detected. No package manager install will be executed.

JDL definitions
application {
  config {
    baseName app1
    authenticationType session
    websocket spring-websocket
  }
  entities A, B, C
  dto * with mapstruct
}

entity A
entity B
entity C

paginate * with infinite-scroll

  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Nov 21, 2021

Indeed, I saw but forgot about it. We don’t have angular test with websocket to catch the peer conflict.
@vicpermir can you provide the PR reverting the dependency?

@vicpermir
Copy link
Contributor Author

PR created.

mshima pushed a commit that referenced this issue Nov 21, 2021
@mshima
Copy link
Member

mshima commented Nov 21, 2021

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bug 🐛 theme: angular theme: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants