Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

export 'IMetadata' was not found in 'kaop-ts'

See original GitHub issue


I am facing this error with Angular 4.

export ‘IMetadata’ was not found in ‘kaop-ts’

angular warning

import { Injectable } from '@angular/core'
import { AdvicePool, adviceMetadata, IMetadata } from 'kaop-ts'

export class LogAspect extends AdvicePool {
  static log(@adviceMetadata meta: IMetadata) {
    console.log('Called: ',
    console.log('Args: ', meta.args)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

alexjovermcommented, Jun 2, 2017

Thanks to @musti2! We learnt something new today

alexjovermcommented, Jun 2, 2017

@k1r0s I think it was too early to close, since we didn’t provide a final solution.

I’ve been investigating. As you could have seen in angular/angular-cli#2034 (comment), the issue have implications on Webpack, TypeScript and Angular, so prob the issue will remain for a time, and is not in our side. Is not too important anyway since is a warning.

Anyway, I’ve tried several things from kaop-ts side, and there is nothing we can do. The best workaround I found is in the angular app re-exporting the interface from an inteface-only file (very important, don’t mix interfaces with variables, const, classes or functions in that file):

// app/interfaces.ts
export { IMetadata } from 'kaop-ts';
// app/logging-aspect.ts

import { adviceMetadata, AdvicePool } from 'kaop-ts'
import { IMetadata } from './interfaces' // Import from here instead

class LoggingAspect extends AdvicePool {
    static log( @adviceMetadata meta: IMetadata) {
        console.log('Called: ',;
        console.log('Args: ', meta.args);

That will remove the warnings.

@k1r0s I’d suggest to add this case to a Troubleshooting section in the Readme. Then is more visible for the angular users

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to find and use Kahoot! reports
Download report by clicking the three vertical dots next to Report options. Print report by clicking the three vertical dots next to Report ......
Read more >
Key not found in metadata when exporting with PyCAP #62
I am exporting data from one of my REDCap projects. On the statement: project = Project(URL, TOKEN), I get a message "Exporting metadata...
Read more >
Export Kahoot to any platform like Quizizz, Blooket or Gimkit
Go to your Kahoot Library and identify which Kahoot quiz you want to export. The Library tab can be found at the top...
Read more >
export kahoot to google form
Speech and Hearing Kahoot Game » + Google Calendar + iCal Export. ... also include survey metadata (e.g. The form will be generated...
Read more >
Features Comparison Between Poll Everywhere and Other ...
POLL EVERYWHERE ARCHIP... Devices Required Any device that has internet connection access. Any dev... PowerPoint Integration YES NO Allowing Students to Ask Question YES, use Q&A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found