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
Can't Import in Angular 5 #96
Comments
The problem is, that you're using About version
|
Now, i builded the package by myself and imported it to my project --> still the same problem. |
How did you import the built library in your project? About the release date: |
I cloned the master branch, installed node packages and build de project. In my final project, i copied the dist folder and imported the main module. --> Still not working Okay, i temporary programmed my own wizard based on routes and guards. |
Can you give me a small sample project, producing the error, so that I can debug it? |
i tryed it in a new, clean Angular 5 project with modules and submodules |
I have the same problem, I just did the followings:
|
@SSchindi I've planned to write a short documentation how to build |
So, what do you suggest ? |
@Ahmadburghol The same solution I suggested @SSchindi, i.e. building version When importing the library I suggest to use In addition I would like to hear if version |
Error using angular/cli "^1.7.0": Error: D:\MPS\MpsWeb\node_modules\ng2-archwizard\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. |
How I am using with angular 5: Clone the project: In my project directory: Pay attention that is ng2-archwizard, not ng-archwizard/dist. Another option, is to build the package, and manual copy to node_modules/ng2-archwizard In your project, open your package.js file and include '--preserve-symlinks' in your ng serve command. For example, mine is:
The --preserve-symlinks is an issue with the ng-packagr (ng-packagr/ng-packagr#304) |
Same error here. Build from master and copy folder to my project, in VSCode doesnt show any error but in browsers (Chrome and Firefox) the error appears. Uncaught Error: Template parse errors:
[ERROR ->] |
any update on the angular 5 release? |
A little confused here. If it's mostly working for Angular5, why not just build a npm preview version from that branch instead of making everyone import everything manually? |
I've just release version If you have some issues with the new version please open a new github issue. |
Hey Guys
I'm trying to import this libary in my angluar 5 Project.
I installed it with Yarn (yarn add ng2-archwizard -s) and imported the archwizardmodule in my AppModule:
`import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ArchwizardModule } from 'ng2-archwizard';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ArchwizardModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }`
In HTML, i used the basic-template-code:
<aw-wizard> <aw-wizard-step stepTitle="Title of step 1"> Content of Step 1 <button type="button" awNextStep>Next Step</button> <button type="button" awGoToStep="2">Go directly to third Step</button> </aw-wizard-step> <aw-wizard-step stepTitle="Title of step 2" awOptionalStep> Content of Step 2 <button type="button" awPreviousStep>Go to previous step</button> <button type="button" awNextStep>Go to next step</button> </aw-wizard-step> <aw-wizard-step stepTitle="Title of step 3"> Content of Step 3 <button type="button" awPreviousStep>Previous Step</button> <button type="button" (click)="finishFunction()">Finish</button> </aw-wizard-step> </aw-wizard>
This error occurs:
'aw-wizard-step' is not a known element:
[ERROR ->]
Thanks for help
The text was updated successfully, but these errors were encountered: