iamartyom / ngx-flag-picker

https://iamartyom.github.io/ngx-flag-picker/
MIT License
14 stars 5 forks source link

Not working in Angular 15 #40

Open volago opened 1 year ago

volago commented 1 year ago

Hi.

I cannot be imported in app.module

Repro:

  1. ng new test-app
  2. cd test-app
  3. yarn add ngx-flag-picker
  4. ng build

Effect: image

and

Error: src/app/app.module.ts:5:37 - error TS2307: Cannot find module 'ngx-flag-picker' or its corresponding type declarations.

5 import { NgxFlagPickerModule } from 'ngx-flag-picker';
                                      ~~~~~~~~~~~~~~~~~

Error: src/app/app.module.ts:11:12 - error NG1010: Value
$ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 15.1.6
Node: 18.14.0
Package Manager: yarn 1.22.5
OS: win32 x64

Angular: 15.2.9
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.8
@angular-devkit/build-angular   15.2.8
@angular-devkit/core            15.1.6
@angular-devkit/schematics      15.1.6
@angular/cli                    15.1.6
@schematics/angular             15.1.6
rxjs                            7.8.1
typescript                      4.9.5
DevHiracle commented 10 months ago

did you know how to fix it plz ! i have the same error

ejf071189 commented 10 months ago

Experiencing this on Angular 14

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 14.2.13
Node: 21.1.0 (Unsupported)
Package Manager: npm 10.2.1
OS: win32 x64

Angular: 14.3.0
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.13
@angular-devkit/build-angular   14.2.13
@angular-devkit/core            14.2.13
@angular-devkit/schematics      14.2.13
@angular/cli                    14.2.13
@schematics/angular             14.2.13
rxjs                            6.6.0
typescript                      4.8.4
AlbertoCruz-Xpira commented 10 months ago

Same with angular 16.2

sachin-trantor commented 4 months ago

Same error with angular 17.3.5, it should be updated if there are updates in angular version, or there should be an alternate with same functionality and design.