Heatmanofurioso / ngx-avatars

Spiritual successor of HaithemMosbahi's ngx-avatar
MIT License
16 stars 11 forks source link

Cannot import anything #20

Closed baxyz closed 2 years ago

baxyz commented 2 years ago

Hi, I cannot import anything from ngx-avatars, neither module nor constants.

VScode and IntelliJ cannot auto-complete nor found any available import. And the server (ng) doesn't compile because of the missing module.

I'm actually using Angular 12.2.12

Step to reproduce:

ng new app
cd app
npm install ngx-avatars --save
# in app.module.ts:
#   - add `import { AvatarModule } from 'ngx-avatars';`
#   - add `@NgModule({ ... imports: [... AvatarModule], ...})`
ng serve

The error:

Error: src/app/app.module.ts:3:30 - error TS2307: Cannot find module 'ngx-avatars' or its corresponding type declarations.

import { AvatarModule } from 'ngx-avatars';

For more details of the versions:

The Package npm intalling:

{
  "dependencies": {
    "ngx-avatars": "^1.1.1"
  }
}

And my Angular env:


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

Angular CLI: 12.2.12
Node: 16.13.0 (Unsupported)
Package Manager: npm 8.1.0
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.12
@angular-devkit/build-angular   12.2.12
@angular-devkit/core            12.2.12
@angular-devkit/schematics      12.2.12
@schematics/angular             12.2.12
rxjs                            6.6.7
typescript                      4.3.5
baxyz commented 2 years ago

I made a test project.

https://github.com/baxyz/test-ngx-avatars

I'm confused about where to start.

Heatmanofurioso commented 2 years ago

Hi @baxyz

Sorry for taking a while in responding. Seems like I made a mistake in addressing the output build path. I used windows path separators instead of linux ones.

You've already addressed the issue in your PR, therefore I'll address anything else related to it in it

Thanks