Closed d3vtoolsmith closed 7 years ago
I must confess, that I have no experience with systemjs.
I have always used angular-cli to generate my barebones, which uses webpack instead of systemjs.
What I've noticed is, that you've not written about the step where you've added WizardModule
to your AppModule
. Please check if you did this.
I did include all of the code from installation instructions + <wizard>...</wizard>
markup in the template. Sample app works fine until I start importing WizardModule
.
import { WizardModule } from 'ng2-archwizard';
@NgModule({
imports: [
WizardModule
],
})
export class Module { }
I guess I may just regenerate the whole thing with angular-cli if no-one ran into this.
Using angular-cli
(with webpack) instead of angular quickstart for project shell solved the issue.
Nice to hear that you got it working via angular-cli
and webpack.
Still it would be nice if someone knew how to get it working via angular quickstart
.
If someone got it working feel free to post a comment here how you got it working so that I can extend the README
with the related information.
I'm currently working on a new version of ng2-archwizard
, i.e. version 3.0.0
.
This version uses a new build script, which should make it easier to use ng2-archwizard
.
The new version will require the use of angular 5.
If you're already using angular 5 I would appreciate it if you can build the current master branch, to see if the new version solves the problem for you.
To build the new version simply clone the repository and run npm run build
inside a terminal of your choice.
Afterwards be sure to install the newly created dist
folder in your target application.
Please be aware that the new version contains some syntactical changes.
I visited to https://github.com/madoar/ng2-archwizard/blob/master/README.md and solved previous problem but as I followed this 'aw-wizard-step' is not a known element
error but if I use
but if I use instead of it works...
I don't understand: What did you use instead of it?
What I have done is I have started with https://www.npmjs.com/package/ngx-archwizard with this NPM tutorial but Later I get to know https://www.npmjs.com/package/ng2-archwizard and solved the import problem of WizardModule.
Im Really confused with 2 NPM's. and also with this ReadME https://github.com/madoar/ng2-archwizard/blob/master/README.md
Ok, I understand your confusion:
1.x.y
of ng2-archwizard
. As you can see the last release is also quite old, i.e. 6 months.2.1.0
.3.0.0
which is currently in development. Version 3.0.0
contains some syntactical changes, which is the reason why the README file has some changes compared to the one found on npm.
There must be something trivial I'm overlooking, but I'm having trouble importing 'ng2-archwizard' from within a barebones, official Angular Quickstart.
If I begin with the official import instructions -
import { WizardModule } from 'ng2-archwizard';
- after doingnpm install --save ng2-archwizard
, I get the following error:zone.js:2622 GET http://localhost:3000/ng2-archwizard 404 (Not Found)
Then, if I add the following line -
'ng2-archwizard': 'npm:ng2-archwizard/dist/index.js'
- tosystemjs.config.js
, I get the following error:zone.js:2622 GET http://localhost:3000/traceur 404 (Not Found)
Then, if I add reference to
traceur
insideindex.html
, the error slightly changes, but persists nonetheless:zone.js:2622 GET http://localhost:3000/node_modules/ng2-archwizard/dist/components/ 404 (Not Found)
Is there something obvious I'm missing either in the way I reference the library or inside the boilerplate Angular Quickstart?