Coder Social home page Coder Social logo

angular-svg-icons's People

Contributors

geoctrl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

svikashk

angular-svg-icons's Issues

Could not find a declaration file for module

Hi, I couldn't get working angular-svg-icons in my app. I get "Could not find a declaration file for module 'angular2-svg-icons'. '...node_modules/angular2-svg-icons/index.js' implicitly has an 'any' type. If I change "noImplicitAny" to false in tsconfig.json the message become more generic: Cannot find module 'angular2-svg-icons'.

@angular/cor@2,4,6; [email protected]

My module:

import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';

import {EditComponent} from "../edit/editComponent";
import {JournalEditComponent} from "../edit/journalEditComponent";
import {PdfEditComponent} from "../edit/pdfEditComponent";
import { PdfViewerComponent } from "ng2-pdf-viewer";
import { IconModule } from 'angular2-svg-icons';



import {editRouting} from "../edit/editRoutes";

@NgModule({
    imports: [CommonModule, FormsModule,
      editRouting, IconModule
    ],
    declarations: [
        PdfViewerComponent,
        JournalEditComponent,
        PdfEditComponent,
    ],
    exports: [],
    providers: []
})
export class EditModule { }

From my component:

import {Component, ViewChild} from "@angular/core";
...
import { svgSymbols } from './svg-symbols';

AoT error using recommended approach

I'm using ng-cli, and when importing an svg spritesheet using ${svgSymbols} in the template it is erroring with "Error encountered resolving symbol values statically. Expression form not supported". Can you recommend an alternative AoT-safe approach to including the svg content?

"Please add a @NgModule annotation"

Hello, after importing IconModule to my app module, i had see next error:
Error: Unexpected value 'IconModule' imported by the module 'AppModule'. Please add a @NgModule annotation..
I think what this eror is related with angular/angular-cli#6239
Do you have any ideas how to fix it?

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.