jrquick17 / ionic4-auto-complete

An auto complete compatible with Ionic 2+ and Angular 2+.
https://ionic4-auto-complete.jrquick.com
MIT License
49 stars 36 forks source link

ng build error #176

Open cokcok opened 4 months ago

cokcok commented 4 months ago

I'm submitting a

Description

Version Information

ionic4-auto-complete: 2.9.9
@angular/cli: 11.2.4

Browser


NOTE: Replace x.x.x with your version information

cokcok commented 4 months ago

PS E:\project_ionic\trace> ng build --prod --aot --outputHashing=all --base-href /ied_test/ ⠙ Generating browser application bundles (phase: building)...(node:10308) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\project_ionic\trace\node_modules\postcss\package.json.
Update this package.json to use a subpath pattern like "./*". (Use node --trace-deprecation ... to show where the warning was created) ✔ Browser application bundle generation complete.

Warning: E:\project_ionic\trace\src\app\app.module.ts depends on 'angular2-moment'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: E:\project_ionic\trace\src\app\rwa01\rwa01.page.ts depends on 'moment/locale/th'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Error: src/app/trac101/trac101.page.html:92:16 - error TS2322: Type 'PlaceService' is not assignable to type 'Function | AutoCompleteService'. Type 'PlaceService' is not assignable to type 'AutoCompleteService'. Property 'getResults' is protected in type 'PlaceService' but public in type 'AutoCompleteService'.

92 [dataProvider]="placeSv" formControlName="place_rubber1">


  src/app/trac101/trac101.page.ts:15:16
    15   templateUrl: './trac101.page.html',
Error occurs in the template of component Trac101Page.