Hello! I want to utilize TypeScript fully and use “typedi” npm package to create services in service container.
This is my code:
import "reflect-metadata";
import { Service } from "typedi";
@Service()
class ApiService {
constructor(url: string, auth_token: string) {
}
getQuestions() {
}
}
export default ApiService
I’m getting this error:
[Scene] Found possible circular reference in "pack:///chunks/a6/a6d7233ff9eee0f98f92438ae58a7c72559087ff.js", happened when use "Service" imported from "typedi" Error:
[Scene] TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
Line in question:
@Service()