VinceZK / Logon

An identification management solution using JOR, Angular, Express, Passport and Redis
https://darkhouse.com.cn/logon
4 stars 1 forks source link

doesn't build , nvm is set to v17.4.0 #1

Open datasmithadvtech opened 8 months ago

datasmithadvtech commented 8 months ago

nodejs is v17.4.0 i am using a Mac with current updates

Node.js version v17.4.0 detected. Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/. Warning: Support was requested for Internet Explorer in the project's browserslist configuration. Internet Explorer is no longer officially supported. For more information, see https://angular.io/guide/browser-support ✔ Browser application bundle generation complete.

Warning: /Users/larry/dev-ng/Logon/node_modules/ui-message-angular/fesm2015/ui-message-angular.mjs depends on 'rxjs/internal/BehaviorSubject'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

./src/app/app.module.ts:13:0-72 - Error: Module not found: Error: Can't resolve 'ui-logon-angular' in '/Users/larry/dev-ng/Logon/src/app'

./src/app/identity.service.ts:9:0-43 - Error: Module not found: Error: Can't resolve 'ui-logon-angular' in '/Users/larry/dev-ng/Logon/src/app'

Error: src/app/admin-info/admin-info.component.html:2:3 - error NG8001: 'dk-app-attribute-form2' is not a known element:

  1. If 'dk-app-attribute-form2' is an Angular component, then verify that it is part of this module.
  2. If 'dk-app-attribute-form2' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
VinceZK commented 8 months ago

The error " Can't resolve 'ui-logon-angular' " indicates you didn't build the "ui-logon-angular" project. You need first run ng build logon to build the ui-logon-angular project, then you run ng build. The error should gone.