uttesh / ng2letteravatar Goto Github PK
View Code? Open in Web Editor NEWThis component is moved to ngu-utility module
Home Page: https://github.com/uttesh/ngu-utility
License: MIT License
This component is moved to ngu-utility module
Home Page: https://github.com/uttesh/ngu-utility
License: MIT License
Hi @uttesh ,
I'm developing an app with Nativescript + Angular. Do you know if I can use your plugin?
Regards,
Trying to implement ng2letteravatar into my Ionic2 project.
modified my app.module.ts:
Got error:
Uncaught TypeError: (void 0) is not a function
at Object. (main.js:126901)
at webpack_require (bootstrap 2118c8b…:19)
at Object. (platform-browser-dynamic.es5.js:170)
at webpack_require (bootstrap 2118c8b…:19)
at Object. (setImmediate.js:186)
at webpack_require (bootstrap 2118c8b…:19)
at bootstrap 2118c8b…:65
at bootstrap 2118c8b…:65
Hi all,
I meet some problem with this plugin.
Here is my running environment:
@angular/cli: 1.0.0-rc.1
node: 6.9.4
os: win32 x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
And this the error message
Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Component in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/node_modules/@angular/core/src/metadata/directives.d.ts, resolving symbol Component in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/node_modules/@angular/core/src/metadata.d.ts, resolving symbol Component in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/node_modules/@angular/core/src/core.d.ts, resolving symbol Component in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/node_modules/@angular/core/index.d.ts, resolving symbol Ng2LetterAvatar in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/ng2letteravatar.ts, resolving symbol Ng2LetterAvatar in C:/Users/xxx/Desktop/WorkingProjects/neutrino/ng2frontend/node_modules/ng2letteravatar/ng2letteravatar.ts
node_modules/ng2letteravatar/ng2letteravatar.ts(162,13): error TS7005: Variable 'colorIndex' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(182,13): error TS7005: Variable 'component' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(235,23): error TS7006: Parameter 'width' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(235,30): error TS7006: Parameter 'height' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(235,38): error TS7006: Parameter 'color' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(235,45): error TS7006: Parameter 'cobj' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(260,33): error TS7006: Parameter 'character' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(260,44): error TS7006: Parameter 'textColor' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(260,55): error TS7006: Parameter 'fontFamily' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(260,67): error TS7006: Parameter 'fontWeight' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(260,79): error TS7006: Parameter 'fontsize' implicitly has an 'any' type.
node_modules/ng2letteravatar/ng2letteravatar.ts(303,30): error TS7006: Parameter 'data' implicitly has an 'any' type.
After embedding inside pagination technique
it kept throwing error this.letteravatar.clear(); unless i remove that line fron ngOnDestory
Hello Uttesh,
I am using this with Ionic 2 and when I build it using ionic build android --prod, I get the following errors.
[19:47:31] ionic-app-scripts 1.0.0
[19:47:31] build prod started ...
[19:47:31] clean started ...
[19:47:31] clean finished in 1 ms
[19:47:31] copy started ...
[19:47:31] ngc started ...
[19:47:33] build prod failed: Unexpected value 'Ng2LetterAvatar' imported by the module 'AppModule'
[19:47:33] ionic-app-script task: "build"
[19:47:33] Error: Unexpected value 'Ng2LetterAvatar' imported by the module 'AppModule'
Error: Unexpected value 'Ng2LetterAvatar' imported by the module 'AppModule'
at /home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:14675:33
at Array.forEach (native)
at CompileMetadataResolver._loadNgModuleMetadata (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:14660:51)
at CompileMetadataResolver.getUnloadedNgModuleMetadata (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:14636:23)
at addNgModule (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:12944:43)
at /home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:12957:16
at Array.forEach (native)
at _createNgModules (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:12956:28)
at analyzeNgModules (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:12700:16)
at analyzeAndValidateNgModules (/home/infoobjects/Projects/truchat-mobile-2/truchat-mobile/node_modules/@angular/compiler/bundles/compiler.umd.js:12704:20)
I have followed the steps given in the quickstart.
Ng2LetterAvatar.prototype.ngOnDestroy = function () {
if (this.letteravatar) {
this.letteravatar.clear();
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.