Warning about no license with Yarn

1,209 views
Skip to first unread message

Matt Raible

unread,
Jun 5, 2017, 12:23:11 PM6/5/17
to JHipster dev team
Hello everyone,

This morning, I noticed a couple of warnings when using Yarn to install Yeoman and JHipster. I’m not sure what the “yo” issue is, but I’m guessing we might be able to fix the “No license field” from JHipster?

Cheers,

Matt

$ yarn global add yo generator-jhipster
yarn global v0.24.4
warning No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning Pattern ["yo@^1.8.5"] is trying to unpack in the same destination "/Users/mraible/Library/Caches/Yarn/v1/npm-yo-1.8.5-776ab9ec79a7882f8d4f7a9e10214fdab050d928" as pattern ["y...@1.8.5"]. This could result in a non deterministic behavior, skipping.
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
success Installed "y...@1.8.5" with binaries:
- yo
- yo-complete
success Installed "generator...@4.5.2" with binaries:
- jhipster
warning No license field
✨ Done in 6.13s.


Matt Raible

unread,
Jun 5, 2017, 12:33:51 PM6/5/17
to JHipster dev team
Nevermind, this seems to happen when just installing Yeoman as well.

$ yarn global add yo
yarn global v0.24.4
warning No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning Pattern ["yo@^1.8.5"] is trying to unpack in the same destination "/Users/mraible/Library/Caches/Yarn/v1/npm-yo-1.8.5-776ab9ec79a7882f8d4f7a9e10214fdab050d928" as pattern ["y...@1.8.5"]. This could result in a non deterministic behavior, skipping.
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
success Installed "y...@1.8.5" with binaries:
- yo
- yo-complete
warning No license field
✨ Done in 6.94s.

Somewhat related - it seems I can’t run “yo jhipster” when I install with Yarn only.

$ yo jhipster
Error jhipster

You don’t seem to have a generator with the name “jhipster” installed.
But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-jhipster.

To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.

If yo cannot find the generator, run yo doctor to troubleshoot your system.

Running "npm install -g yo generator-jhipster” solves the problem, but I do have to open a new terminal for it to work. I’m using Node.js 8 on macOS.

Thanks,

Matt

Matt Raible

unread,
Jun 5, 2017, 1:05:59 PM6/5/17
to JHipster dev team
Another issue found when generating the application:

$ ngc -p tsconfig-aot.json
Cannot determine the module for class JhiAlertComponent in /Users/mraible/dev/21-points/src/main/webapp/app/shared/alert/alert.component.ts! Add JhiAlertComponent to the NgModule to fix it.
Cannot determine the module for class JhiAlertErrorComponent in /Users/mraible/dev/21-points/src/main/webapp/app/shared/alert/alert-error.component.ts! Add JhiAlertErrorComponent to the NgModule to fix it.
Cannot determine the module for class HasAnyAuthorityDirective in /Users/mraible/dev/21-points/src/main/webapp/app/shared/auth/has-any-authority.directive.ts! Add HasAnyAuthorityDirective to the NgModule to fix it.
Cannot determine the module for class JhiLoginModalComponent in /Users/mraible/dev/21-points/src/main/webapp/app/shared/login/login.component.ts! Add JhiLoginModalComponent to the NgModule to fix it.
Cannot determine the module for class FindLanguageFromKeyPipe in /Users/mraible/dev/21-points/src/main/webapp/app/shared/language/language.pipe.ts! Add FindLanguageFromKeyPipe to the NgModule to fix it.
Cannot determine the module for class ErrorComponent in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/error/error.component.ts! Add ErrorComponent to the NgModule to fix it.
Cannot determine the module for class JhiMainComponent in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/main/main.component.ts! Add JhiMainComponent to the NgModule to fix it.
Cannot determine the module for class FooterComponent in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/footer/footer.component.ts! Add FooterComponent to the NgModule to fix it.
Cannot determine the module for class NavbarComponent in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/navbar/navbar.component.ts! Add NavbarComponent to the NgModule to fix it.
Cannot determine the module for class ActiveMenuDirective in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/navbar/active-menu.directive.ts! Add ActiveMenuDirective to the NgModule to fix it.
Cannot determine the module for class PageRibbonComponent in /Users/mraible/dev/21-points/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts! Add PageRibbonComponent to the NgModule to fix it.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
WARNING! Install of dependencies failed!

I assume this might just be an issue with AOT?

I’m using “21points” as my application name (as I did with previous JHipster versions for the JHipster mini-book). It seems this might not work with JHipster 4.x. When I run “yarn start”, I get the following errors:

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:31
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:38
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:24:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:45:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:45:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:45:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:31
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:38
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:35:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:73:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:73:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:73:34
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:28
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:35
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:11:44
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:55
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:62
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:30
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:37
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:32
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:39
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:31
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:38
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:32:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:33:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:34:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:35:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:36:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:54:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:54:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:54:32
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/entities/entity.module.ts:14:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/entities/entity.module.ts:14:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/entities/entity.module.ts:14:35
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:31
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:38
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:10:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:22:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:22:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:22:33
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:5
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:11:1
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:11:8
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:21:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:38:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:44:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:44:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:44:41
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-libs.module.ts:28:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-libs.module.ts:28:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-libs.module.ts:28:39
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:6:5
TS1003: Identifier expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:6:7
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:18:1
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:18:8
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:22:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:23:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:43:11
TS1005: ',' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:51:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:51:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:51:35
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:18:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:20:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:17:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:20:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:19:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:22:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:38:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:10
TS1003: Identifier expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:12
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:29
TS1128: Declaration or statement expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:36
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:18:29
TS1005: ',' expected.

ERROR in [at-loader] ./src/test/javascript/spec/test.module.ts:24:14
TS1005: '{' expected.

ERROR in [at-loader] ./src/test/javascript/spec/test.module.ts:24:16
TS1005: ';' expected.

ERROR in [at-loader] ./src/test/javascript/spec/test.module.ts:24:33
TS1005: ';' expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:12
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:4:33
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:24:11
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/account/account.module.ts:45:16
TS2304: Cannot find name 'PointsAccountModule'.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:12
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:4:33
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:35:11
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/admin/admin.module.ts:73:16
TS2304: Cannot find name 'PointsAdminModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:12
TS2304: Cannot find name 'PointsAppModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:3:30
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:11:42
TS2345: Argument of type '21' is not assignable to parameter of type 'Type<{}>'.

ERROR in [at-loader] ./src/main/webapp/app/app.main.ts:11:44
TS2304: Cannot find name 'PointsAppModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:12
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:12
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:32
TS2304: Cannot find name 'UserRouteAccessService'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:7:57
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:12
TS2304: Cannot find name 'PointsHomeModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:8:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:12
TS2304: Cannot find name 'PointsAdminModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:9:32
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:12
TS2304: Cannot find name 'PointsAccountModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:10:34
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:12
TS2304: Cannot find name 'PointsEntityModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:11:33
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:32:11
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:33:11
TS2304: Cannot find name 'PointsHomeModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:34:11
TS2304: Cannot find name 'PointsAdminModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:35:11
TS2304: Cannot find name 'PointsAccountModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:36:11
TS2304: Cannot find name 'PointsEntityModule'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:50:9
TS2304: Cannot find name 'UserRouteAccessService'.

ERROR in [at-loader] ./src/main/webapp/app/app.module.ts:54:16
TS2304: Cannot find name 'PointsAppModule'.

ERROR in [at-loader] ./src/main/webapp/app/entities/entity.module.ts:14:16
TS2304: Cannot find name 'PointsEntityModule'.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:12
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:4:33
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:10:11
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/main/webapp/app/home/home.module.ts:22:16
TS2304: Cannot find name 'PointsHomeModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:5
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:6:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:7:5
TS2304: Cannot find name 'JhiLanguageHelper'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:8:5
TS2304: Cannot find name 'FindLanguageFromKeyPipe'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:9:5
TS2304: Cannot find name 'JhiAlertComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:10:5
TS2304: Cannot find name 'JhiAlertErrorComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:11:3
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:21:11
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:24:9
TS2304: Cannot find name 'FindLanguageFromKeyPipe'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:25:9
TS2304: Cannot find name 'JhiAlertComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:26:9
TS2304: Cannot find name 'JhiAlertErrorComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:29:9
TS2304: Cannot find name 'JhiLanguageHelper'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:38:11
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:39:9
TS2304: Cannot find name 'FindLanguageFromKeyPipe'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:40:9
TS2304: Cannot find name 'JhiAlertComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:41:9
TS2304: Cannot find name 'JhiAlertErrorComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-common.module.ts:44:16
TS2304: Cannot find name 'PointsSharedCommonModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared-libs.module.ts:28:16
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:6:5
TS1141: String literal expected.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:6:7
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:6:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2304: Cannot find name 'PointsSharedCommonModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:7:7
TS2695: Left side of comma operator is unused and has no side effects.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:8:5
TS2304: Cannot find name 'CSRFService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:9:5
TS2304: Cannot find name 'AuthServerProvider'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:10:5
TS2304: Cannot find name 'AccountService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:11:5
TS2304: Cannot find name 'UserService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:12:5
TS2304: Cannot find name 'StateStorageService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:13:5
TS2304: Cannot find name 'LoginService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:14:5
TS2304: Cannot find name 'LoginModalService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:15:5
TS2304: Cannot find name 'Principal'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:16:5
TS2304: Cannot find name 'HasAnyAuthorityDirective'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:17:5
TS2304: Cannot find name 'JhiLoginModalComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:18:3
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:22:11
TS2304: Cannot find name 'PointsSharedLibsModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:23:11
TS2304: Cannot find name 'PointsSharedCommonModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:26:9
TS2304: Cannot find name 'JhiLoginModalComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:27:9
TS2304: Cannot find name 'HasAnyAuthorityDirective'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:31:9
TS2304: Cannot find name 'LoginService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:32:9
TS2304: Cannot find name 'LoginModalService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:33:9
TS2304: Cannot find name 'AccountService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:34:9
TS2304: Cannot find name 'StateStorageService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:35:9
TS2304: Cannot find name 'Principal'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:36:9
TS2304: Cannot find name 'CSRFService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:37:9
TS2304: Cannot find name 'AuthServerProvider'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:38:9
TS2304: Cannot find name 'UserService'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:41:23
TS2304: Cannot find name 'JhiLoginModalComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:43:11
TS2304: Cannot find name 'PointsSharedCommonModule'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:44:9
TS2304: Cannot find name 'JhiLoginModalComponent'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:45:9
TS2304: Cannot find name 'HasAnyAuthorityDirective'.

ERROR in [at-loader] ./src/main/webapp/app/shared/shared.module.ts:51:16
TS2304: Cannot find name 'PointsSharedModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:4:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/activate/activate.component.spec.ts:18:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:5:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/finish/password-reset-finish.component.spec.ts:20:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:4:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password-reset/init/password-reset-init.component.spec.ts:17:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:3:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/password/password.component.spec.ts:20:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:6:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/register/register.component.spec.ts:19:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:4:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/account/settings/settings.component.spec.ts:22:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:5:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/audits/audits.component.spec.ts:38:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:10
TS1141: String literal expected.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:12
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:3:31
TS2304: Cannot find name 'from'.

ERROR in [at-loader] ./src/test/javascript/spec/app/admin/health/health.component.spec.ts:18:29
TS2304: Cannot find name 'PointsTestModule'.

ERROR in [at-loader] ./src/test/javascript/spec/test.module.ts:24:16
TS2304: Cannot find name 'PointsTestModule'.
Child html-webpack-plugin for "index.html":
chunk {0} index.html 1.04 kB [entry] [rendered]
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html] ./~/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 1.04 kB {0} [built]
factory:1194ms building:6334ms = 7528ms
webpack: Failed to compile.

Here’s my .yo-rc.json file:

{
"generator-jhipster": {
"promptValues": {
"packageName": "org.jhipster.health",
"nativeLanguage": "en"
},
"jhipsterVersion": "4.5.2",
"baseName": "21points",
"packageName": "org.jhipster.health",
"packageFolder": "org/jhipster/health",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "gradle",
"enableSocialSignIn": false,
"jwtSecretKey": "17fd0f3fb354d63fb01f52eb8cc6d9530511b5ad",
"clientFramework": "angular2",
"useSass": true,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [
"gatling",
"protractor"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en",
"fr"
]

Matt Raible

unread,
Jun 5, 2017, 11:02:49 PM6/5/17
to JHipster dev team
I did some more testing tonight and discovered that TypeScript classes generated with a number starting their name doesn’t work, just like in Java. We should trap this and warn users that using numbers to begin their project name won’t work. I’ll note it in the book for now, but it’d be nice to delete that part eventually.

I was able to successfully generate apps using “TwentyOnePoints” and “twenty-one-points” as the name.

Cheers,

Matt

Deepu K Sasidharan

unread,
Jun 6, 2017, 3:00:38 AM6/6/17
to Matt Raible, JHipster dev team
May be we should add it to validation

--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/FD778276-DD1C-4DF4-A0B1-7F74907894F3%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.

Matt Raible

unread,
Jun 6, 2017, 9:48:20 AM6/6/17
to Deepu K Sasidharan, JHipster dev team
Related: I was only able to use “twenty-one-points” as the name when I modified .yo-rc.json and generate. If I try to use it when running “yo jhipster”, it says there’s invalid characters in the name. So I had to use “TwentyOnePoints” as the name. When doing that, the database name/user is generated as CamelCase and things fail to connect. Because of this, I believe we should lowercase the database name and username (at least when using PostgreSQL).

Excerpt from the book about this:

<excerpt>
To prove the `prod` profile worked and I could talk to PostgreSQL, I installed http://postgresapp.com/[Postgres.app] and tried
creating a local PostgreSQL database with settings from `src/main/resources/config/application-prod.yml`.

----
"/Applications/Postgres.app/Contents/Versions/9.6/bin/psql" -p5432 -d "postgres"
⌂104% [mraible:~] $ "/Applications/Postgres.app/Contents/Versions/9.6/bin/psql" -p5432 -d "postgres"
psql (9.6.3)
Type "help" for help.
postgres=# create user TwentyOnePoints with password '21points';
CREATE ROLE
postgres=# create database TwentyOnePoints;
CREATE DATABASE
postgres=# grant all privileges on database TwentyOnePoints to TwentyOnePoints;
GRANT
postgres=#
----

I updated `application-prod.yml` to use `21points` for the datasource password. I confirmed I could talk to a PostgreSQL database when running with the `prod` profile.
I was greeted with an error saying that things were not setup correctly.

----
$ ./gradlew -Pprod
...
2017-06-05 21:36:47.801 ERROR 85865 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'liquibase' defined in class path resource
[org/jhipster/health/config/DatabaseConfiguration.class]: Invocation of init method
failed; nested exception is liquibase.exception.DatabaseException: org.postgresql
.util.PSQLException: FATAL: role "TwentyOnePoints" does not exist
----

I quickly realized that PostgreSQL is case insensitive, so even though I typed
"TwentyOnePoints", it configured the database name and username as "twentyonepoints".
I updated `application-prop.yml` with the correct case and tried again. This time it worked!

----
$ ./gradlew -Pprod
...
----------------------------------------------------------
        Application 'TwentyOnePoints' is running! Access URLs:
        Local:          http://localhost:8080
        External:       http://192.168.1.27:8080
        Profile(s):     [prod]
----------------------------------------------------------
----
</excerpt>
Reply all
Reply to author
Forward
0 new messages