Comments (5)
Hi santiim,
There are couple of steps that you need to do for adding a new library support in the project.
- do npm install PackageName --save
- add entry in systemjs
- Add entry in index.html to refer to the copied location.
- Also check the gulpfile.js and add the entry if required.
If you face any issue then let me know.
from angular2-express-mongoose-gulp-node-typescript.
Thanks moizKachwala for your answer! If I have done all the necessary steps, in other projects I have succeeded without problem, but in this I have not been able to achieve it, I try with several components and there was no case. I think it may be some particularity of this project. One simple to test is:
https://github.com/JiriBalcar/angular2-datepicker
With which I have not been able either.
Have you been able to incorporate any external components to this project?
from angular2-express-mongoose-gulp-node-typescript.
I tried D3 charts added in one of my angular project without any problem.
Which library are you trying to add here ? can you give some more details so that I can try adding in this project.
from angular2-express-mongoose-gulp-node-typescript.
Hi moizKachwala! and solve the problem, To be able to use angular2-jwt, these were the steps:
In the file gulpfile.TS add the following line:
gulp.task("libs", () => {
return gulp.src([
'core-js/client/**',
'zone.js/dist/zone.js',
'reflect-metadata/Reflect.js',
'reflect-metadata/Reflect.js.map',
'systemjs/dist/system.src.js',
'angular2-jwt/'
In the systemjs.conf.js:
var map = {
'app': 'app', // 'dist',
'@angular': (isPublic)? '@angular' : 'node_modules/@angular',
'rxjs': (isPublic)? 'rxjs' : 'node_modules/rxjs',
'angular2-jwt': '../libs/angular2-jwt/angular2-jwt.js'
};
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'angular2-jwt': { defaultExtension: 'js' }
};
Finally I run:
Npm run build
Npm run deploy
So solve the problem, thank you very much for your patience!
from angular2-express-mongoose-gulp-node-typescript.
great :)
from angular2-express-mongoose-gulp-node-typescript.
Related Issues (20)
- Property in Controller class can't used in the functions which are register in Routes HOT 3
- Production version and upload to server HOT 1
- No Typescript compilation error for Server HOT 2
- Heroku won't build HOT 2
- when i use "npm run build",error happend! HOT 1
- how to use scss HOT 3
- Did you use a generator for this project ? HOT 1
- can we replace type script code with regular javascript in server side? HOT 1
- Webpack or SystemJS HOT 4
- npm run build error HOT 1
- How to use forever HOT 1
- Decrease request during loading. HOT 2
- how do i remove the '#' in the url HOT 1
- Update to @types HOT 1
- How to check api is working or not HOT 1
- ZoneAwareError on adding npm package HOT 1
- TS Errors for windows 10 HOT 1
- Unable to add Angular Material HOT 6
- when I update the file, website doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-express-mongoose-gulp-node-typescript.