-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolution error: cannot find module #184
Comments
What does the relevant import look like in |
I was guessing it would be https://github.com/nestjs/nest/blob/8c503d3193059f40632df7378d5091ea8ef6b13d/packages/core/nest-application.ts#L34-L38 which would mean a configuration to allow misses like: jetpack:
trace:
allowMissing:
"@nest/core":
- "@nest/microservices"
- # ... etc ... ... which is usually how this ends. But it looks like your application entry point has the optional require, which I'm guessing isn't the case but rather with an entry point name If so, if you're bundling with a tool you don't need jetpack just use the tool to create a single lambda bundle and completely ignore |
Hey, yeah I am using NestJS to bundle everything into my lambda. So it is basically embedding everything into my file, but I just need to ignore these optional modules. I will try with the Thanks for taking the time to respond! :) |
|
Backing up, do you need to trace There's a chance that your packaging solution is just something like:
without using Jetpack trace mode (instead using either jetpack normal mode ( |
It contains all of the dependencies already. This is my jetpack config: jetpack:
collapsed:
bail: true
concurrency: 4
preInclude:
- '!**'
trace:
dynamic:
bail: true |
I need to include a particular node module, but exclude certain files. I am at a loss at how to do this. Also, I set jetpack:
collapsed:
bail: true
concurrency: 4
preInclude:
- '!**'
trace: false |
Just leave the |
Hmm, I do not have any |
Hello,
I am trying to bundle my NestJS app using Jetpack. I get this error:
I need Jetpack to ignore this as the module is a dynamic dependency of NestJS and is not actually consumed by my application. How do I make this work?
The text was updated successfully, but these errors were encountered: