Closed opensas closed 4 years ago
The example is working on my host without any errors. Are you sure you re-ran the npm run build:scripts
command (or npm run build:scripts:w
for watch mode)?
:facepalm: :facepalm: :facepalm:
Ooops, everything works great. I'm sorry to waste you time
Thanks a lot
I'm not sure if it's possible to use dependency injection in a script, just like when you are working on your foalts app.
I tried with the following:
But either using
const myClass = new MyClass()
orconst myClass = createService(MyClass)
gives the same error (in fact, the generated hello.js is identical):I think it would be a nice addition to foalts being able to use dependency injection in scripts, just like how you do it form a foalts application.