goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.29k stars 137 forks source link

Public alias of form-field-helm seems wrong #358

Closed angelnikolov closed 4 days ago

angelnikolov commented 3 weeks ago

Please provide the environment you discovered this bug in.

Angular 18, Nx 19

Which area/package is the issue in?

Don't know / other

Description

form-field publicName is ui-formfield-helm (missing dash). Executing npx nx g @spartan-ng/cli:ui form-field generates a tsconfig path alias of @spartan-ng/ui-formfield-helm, which contradicts the documentation of the form-field package here resulting in a compilation error of a wrong import.


import { HlmFormFieldModule } from '@spartan-ng/ui-form-field-helm';
import { HlmInputDirective } from '@spartan-ng/ui-input-helm';

Please provide the exception or error you saw

✘ [ERROR] TS2307: Cannot find module '@spartan-ng/ui-form-field-helm' or its corresponding type declarations. [plugin angular-compiler]

    libs/product-card/src/lib/product-card/product-card.component.ts:4:35:
      4 │ import { HlmFormFieldModule } from '@spartan-ng/ui-form-field-helm';
        ╵                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Other information

No response

I would be willing to submit a PR to fix this issue

ajitzero commented 3 weeks ago

Related #351