Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in Directive NgWizardStep in /node_modules/ng-wizard/ng-wizard.d.ts has no selector, please add it! #31

Open
bacigalupe opened this issue Dec 15, 2020 · 8 comments

Comments

@bacigalupe
Copy link

Hi,
I've added a simple wizard component to my angular project. When I try to run ng build --prod I get the error below:
image

See some details about versions installed
image

ng-wizard version is 1.3.0
Any idea why this is happening, or suggestion to fix it?
Thanks!

@giuseeFG
Copy link

I have the same issue..

@tandacedric
Copy link

me too

@Robertofon
Copy link

same same. But
Angular CLI: 8.3.23
Node: 12.13.1
OS: win32 x64
Angular: 8.2.14

@Arap919
Copy link

Arap919 commented Jun 1, 2021

I created a PR #46. It works for me. Hope this PR will be accepted soon

@djsoul86
Copy link

@Arap919 i got the same issue, is imposible to deploy on production!! Help!!

@Arap919
Copy link

Arap919 commented Jun 22, 2021

@djsoul86 For a quick solution we forked this library and did next steps:

  1. Delete @directive before NgWizardStep in lib/utils/interfaces.ts
    Next steps have to fix problems with NullIbjectorError
  2. Change @Injectable({ provideIn: 'root' }) to @Injectable() in lib/core/ng-wizard-data.service.ts and lib/core/ng-wizard.service.ts
  3. Declare this two services in module
providers: [NgWizardService, NgWizardDataService]
  1. Change forRoot() to
static forRoot(ngWizardConfig: NgWizardConfig): ModuleWithProviders<NgWizardModule> {
    return {
      ngModule: NgWizardModule,
      providers: [
        NgWizardService,
        NgWizardDataService,
        {
          provide: NG_WIZARD_CONFIG_TOKEN,
          useValue: ngWizardConfig
        }
      ]
    };
  }

@jayeshagwan1
Copy link

@djsoul86 @Arap919 Any update on this? In latest version still getting this error

@Arap919
Copy link

Arap919 commented Apr 20, 2022

@jayeshagwan1 try to use this one https://github.com/Arap919/ng-wizard-fixed-fork as temporary solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants