Resolving "implicit" dependencies #88
Replies: 2 comments
-
Hi @mmacdonaldOCP, Is the application open source? |
Beta Was this translation helpful? Give feedback.
-
Hi @garronej 👋 It's a runtime error, and specifically it's with NestJS framework as it's expecting the dependency I specified above to be listed in Specifically: As far as the application it's just the initial output from creating a NestJS app. The code I posted above is the generated code in
Then I just add Denoify as a dev dependency and run as-is in root project folder. After all that running Deno from root with:
|
Beta Was this translation helpful? Give feedback.
-
Hello!
I was experimenting with Denoify-ing a NestJS test project to see how well it would work with Deno. The default code will start you with an Express server, but requires you to add it as a dependency:
@nestjs/platform-express
. What I was running into was that when I use Denoify this dependency is not included anywhere in the output, which makes sense since it's not referenced explicitly in my code anywhere. However it stops the application from being able to run.I was able to work around this by just explicitly setting the backing server type (or, optionally, an empty
import
statement)E.g.
Before (valid):
After:
or alternatively:
Ultimately my questions: is this a limitation of Denoify? Or is there a way to tell the generator to somehow import that dependency? Or would it be expected to have some
deps.deno.ts
file or something of the sort?Beta Was this translation helpful? Give feedback.
All reactions