Adding serverDependenciesToBundle causes build not to find other modules
See original GitHub issueWhat version of Remix are you using?
1.4.1
Steps to Reproduce
When a warning is shown that a package needs to be added to serverDependenciesToBundle
, I add the package the config. But then the build fails on every other dependency with βCannot find moduleβ.
Error: Cannot find module 'async-lock'
Removing the serverDependenciesToBundle
from the config fixes the build but shows ESM warnings.
I am installing dependencies with pnpm.
Expected Behavior
Adding serverDependenciesToBundle
to config should remove ESM warnings and not break the build.
Actual Behavior
Adding serverDependenciesToBundle
to config does fix the ESM warnings, but causes build to fail.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Module Constraints - Remix
Adding .server to the filename is a hint to the compiler to not worry about this module or its imports when bundling for...
Read more >How to add dependencies to tests of another project in a multi ...
I have a multi-platform Kotlin project, which contains multiple modules (subprojects). The Building Multiplatform Projects withΒ ...
Read more >Module::Build::Cookbook.txt - Perl Documentation
=head1 BASIC RECIPES =head2 Installing modules that use Module::Build In most ... in some other place, see L<"Adding new elements to the install...
Read more >remix-run/remix v1.2.0 on GitHub - NewReleases.io
When you specify a build target, Remix will take care of configuring other details like the build directory and module format. serverBuildTarget supports...
Read more >I can't seem to share test code between projects in a multi ...
In it there is a module that has tests that depend on test classes ... Could not get unknown property 'test' for SourceSet...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have a script that will find all the ESM packages for you. https://github.com/kiliman/rmx-cli#-get-esm-packages
I canβt believe I need to include all the transitive dependencies! Thatβs a huge list. Could we make this more smooth?
(Below only shows the result of one of my deps.)