Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
The problem is that you can import commonjs modules in ESM but not the other way around. For stepci (https://stepci.com) we have chosen to not support ESM for this very reason. We want that the library “just works” for all our users
If you use Yarn, there’s the `yarn patch` command [1], which lets you maintain patches for your dependencies. Even though I try to upstream patches wherever possible, sometimes you just want to apply a quick patch and move on, especially if the dependency is poorly maintained or even worse, deeply nested in your dependency hierarchy. I use `yarn patch` regularly, it’s one of the main reasons why I moved to Yarn in the first place.
If you’re not using Yarn, there seems to be a similar thing on npm, `patch-package`. [2] I never had to use that though.
[1]: https://yarnpkg.com/cli/patch
[2]: https://www.npmjs.com/package/patch-package
Also attw [1]. I run both tools in CI to ensure package correctness.
[1] https://github.com/arethetypeswrong/arethetypeswrong.github....
A package I help maintain was released about a month ago, and we've had bug reports related to this: https://github.com/openai/openai-node/issues/304#issuecommen...
We simply chose to mark Jest 27 as unsupported in this case, but it did cost some debugging time.
Related posts
- Finding Stars and Affirmations in the Sky with Three.js for Ayra Starr
- Fix broken node modules instantly
- How to ignore an error , that happens in a node modules library ?
- The Art of Side Effects in React.js: Understanding and Using the useEffect Hook
- Getting kinda stuck with a build error, any help much appreciated