jhipster / jhipster-dotnetcore

JHipster.NET blueprint
Apache License 2.0
313 stars 91 forks source link

Failed generator – JHipster.NET v3.1.1 #918

Closed cvillami closed 2 years ago

cvillami commented 2 years ago
Overview of the issue

The generator does not start, and generates an error that I really cannot understand, much less solve. I have already removed the installation and reinstalled it and it still doesn't work.

Motivation for or Use Case

Generate an application of the type -> Monolithic application

Reproduce the error

Error img

ERROR! Template file .npmrc was not found at /usr/local/lib/node_modules/generator-jhipster-dotnetcore/generators/client/templates/angular,/usr/local/lib/node_modules/generator-jhipster/generators/client/templates/angular

Error: Template file .npmrc was not found at /usr/local/lib/node_modules/generator-jhipster-dotnetcore/generators/client/templates/angular,/usr/local/lib/node_modules/generator-jhipster/generators/client/templates/angular at /usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/generators/generator-base.js:2209:25 at Array.map () at /usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/generators/generator-base.js:2139:42 at Array.map () at /usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/generators/generator-base.js:2136:29 at Array.map () at module.exports.writeFilesToDisk (/usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/generators/generator-base.js:2135:45) at module.exports.writeFiles (/usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/generators/client/files-angular.js:521:15) at module.exports.writeFilesDotnetcore (/usr/local/lib/node_modules/generator-jhipster-dotnetcore/generators/client/index.js:118:47) at Object. (/usr/local/lib/node_modules/generator-jhipster-dotnetcore/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:1024:25)

Unhandled promise rejection at: ReferenceError: /usr/local/lib/node_modules/generator-jhipster/generators/client/templates/angular/package.json.ejs:23 21| "name": "<%= dasherizedBaseName %>", 22| "version": "0.0.1-SNAPSHOT", 23| "description": "<%= projectDescription %>", 24| "private": true, 25| "license": "UNLICENSED", 26| "cacheDirectories": [

projectDescription is not defined

JHipster Version(s)

(base) cvillami@ToreToto poclg % npm ls --global generator-jhipster /usr/local/lib ├─┬ generator-jhipster-dotnetcore@3.1.1 │ └── generator-jhipster@7.1.0 └── generator-jhipster@7.6.0

JHipster configuration

? What is the base name of your application? Poclg ? What is your default C# namespace? Poclg ? Which type of application would you like to create? Monolithic application (recommended for simple projects) ? Besides JUnit and Jest, which testing frameworks would you like to use? Gatling ? On which port would like your server to run ? It should be unique to avoid port conflicts (choose http -> https=httpPort+1). 5000 ? Do you want to use the CQRS design pattern? No ? Which database do you want to use SQLite in-memory ? Which type of authentication would you like to use? JWT authentication (stateless, with a token) ? Which Framework would you like to use for the client? Angular WARNING! Could not fetch bootswatch themes from API. Using default ones. ? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster ? Would you like to enable internationalization support? Yes ? Please choose the native language of the application English ? Please choose additional languages to install Albanian ? Would you like to install other generators from the JHipster Marketplace? No

Browsers and Operating System

macOS version 12.2

nicolas63 commented 2 years ago

if think you have the same issue than https://github.com/jhipster/jhipster-dotnetcore/issues/819 This blueprint support now jhipster 7.1 i need to add the support for the latest version but i you downgrade jhipstter to 7.1 it's ok

cvillami commented 2 years ago

But now I have this error ->

ERROR! Template file webpack/environment.js was not found at /Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/generators/client/templates/angular,/usr/local/lib/node_modules/generator-jhipster/generators/client/templates/angular Error: Template file webpack/environment.js was not found at /Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/generators/client/templates/angular,/usr/local/lib/node_modules/generator-jhipster/generators/client/templates/angular at /Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/generators/generator-base.js:2209:25 at Array.map () at /Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/generators/generator-base.js:2139:42 at Array.map () at /Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/generators/generator-base.js:2136:29 at Array.map () at module.exports.writeFilesToDisk (/Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/generators/generator-base.js:2135:45) at module.exports.writeFiles (/Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/generators/client/files-angular.js:521:15) at module.exports.writeFilesDotnetcore (/Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/generators/client/index.js:118:47) at Object. (/Volumes/CWork/0--Original/jhipster/middle-santander/jhipster-dotnetcore-3.1.1/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:1024:25)

cvillami commented 2 years ago

The only release that does not give the above error is 3.0.0

(base) cvillami@ToreToto poclg % npm ls --global generator-jhipster /usr/local/lib ├─┬ generator-jhipster-dotnetcore@3.0.0 │ └── generator-jhipster@7.0.1 └── generator-jhipster@7.0.1

nicolas63 commented 2 years ago

Oh yes, that's because 3.0 is compatible with 7.0 and 3.1 with 7.1. Sorry, we really need a compatibility matrix. If you want contribute maybe you can add it ?

123445666 commented 2 years ago

I fixed this issue with jhipster 7.6 on my forked branch, it works well for me, you can use it to save your time if you want. https://github.com/123445666/jhipster-dotnetcore/tree/issue-918

nicolas63 commented 2 years ago

Very Nice @123445666 ! Can you create a PR ?

123445666 commented 2 years ago

Sure, i've just done it.

nicolas63 commented 2 years ago

Jhipster dotnet 3.2 is released and support jhipster 7.6