Closed
Description
Hi team,
$ node -v
v4.4.3
$ npm -v
3.8.6
I'm trying to import ts-md5 library with the last version of angular-cli (0.34).
So, I'm following the wiki page https://github.com/angular/angular-cli/wiki/3rd-party-libs
My angular-cli-build.js
file:
module.exports = function (defaults) {
var app = new Angular2App(defaults, {
vendorNpmFiles: [
'ts-md5/dist/md5.js'
]
});
return app.toTree();
};
But when I built my project, the library was not imported to the dist folder.
Next, in the system-config.ts
file:
export const config:any = {
packages: Object.assign({
// Add your custom SystemJS packages here.
}, createPackageConfig(barrels)),
map: {
'md5': 'vendor/ts-md5/dist/md5.js'
}
};
And, the module is not found in component file:
/src/client/app/components/login/login.component.ts (4, 19): Cannot find module 'md5'.
Also this doesn't work anymore: #327
Do you have any idea please ?
Metadata
Metadata
Assignees
Labels
No labels