Giter Site home page Giter Site logo

uttesh / ng2letteravatar Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 6.0 18.38 MB

This component is moved to ngu-utility module

Home Page: https://github.com/uttesh/ngu-utility

License: MIT License

TypeScript 100.00%
angular2 angular-components angular-directives angular-2 letter-avatar gmail-inbox angular4

ng2letteravatar's Introduction

ng2letteravatar

This component is moved and the part of the [ngu-utility](https://github.com/uttesh/ngu-utility) module, which will be having all the utility component,services and pipes of angular going forward.

ng2letteravatar's People

Contributors

uttesh avatar uttesh-rivet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ng2letteravatar's Issues

Ionic2 throw error

Trying to implement ng2letteravatar into my Ionic2 project.

modified my app.module.ts:

  1. import { Ng2LetterAvatar } from "ng2letteravatar/ng2letteravatar";
  2. @NgModule({
    declarations: [
    MyApp,
    Ng2LetterAvatar
    ],

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

import error "Calling function 'makeDecorator', function calls are not supported"

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

throwing following errors while 'npm start'

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.

Throws error when pagination

After embedding inside pagination technique
it kept throwing error this.letteravatar.clear(); unless i remove that line fron ngOnDestory

Unexpected value 'Ng2LetterAvatar' imported by the module 'AppModule'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.