Skip to content
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

Convert remix-utils to regex on serverDependenciesToBundle #254

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

buildtheui
Copy link
Contributor

While attempting to upgrade Remix Utils to the latest version, I encountered the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module ... Instead change the require of promise.js 

Diving deeper I realized that the error was due to my oversight. I had overlooked the warning to add each individual utility to the serverDependenciesToBundle configuration. Subsequently, I also noticed that a related pull request (PR) had been merged into Remix version 2.0.1 but had not completely resolved the issue.

By adding /^remix-utils.*/, in lieu of "remix-utils" and every individual util to serverDependenciesToBundle, it stops showing the error.

@sergiodxa sergiodxa added the documentation Improvements or additions to documentation label Oct 11, 2023
@sergiodxa sergiodxa merged commit dc1dfcc into sergiodxa:main Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants