angular2-qrcode icon indicating copy to clipboard operation
angular2-qrcode copied to clipboard

can't use it

Open mohsensrmst opened this issue 8 years ago • 1 comments

import { QRCodeModule } from 'angular2-qrcode';
@NgModule({
    imports: [
        FormsModule,
        BrowserModule,
        HttpModule,
        AppRoutingModule,
        ReactiveFormsModule,
        QRCodeModule,
        AgmCoreModule.forRoot({
            apiKey: '...',
            libraries: ["places"]
        })
    ],
...

i add QRCode to my app but when running i get error :

Error: Unexpected token <
  Evaluating http://localhost:2634/qrious
  Evaluating http://localhost:2634/app/app.module.js
  Evaluating http://localhost:2634/app/main.js
  Loading ../app
    at eval (<anonymous>)
    at evaluate (system.src.js:2821)
    at system.src.js:3620
    at dynamicExecute (system.src.js:1144)
    at doEvaluate (system.src.js:1091)
    at ensureEvaluate (system.src.js:999)
    at system.src.js:1017
    at doEvaluate (system.src.js:1089)
    at ensureEvaluate (system.src.js:999)
    at system.src.js:1017

my angular version is: @angular/core": "~4.2.3"

and no directives attribute in @Component of this angular version

mohsensrmst avatar Jul 25 '17 11:07 mohsensrmst

same problem here and using angular 2.4.0

ungureanuu avatar Jan 07 '18 11:01 ungureanuu