Work around issue with Node 22 and Jiti#15421
Merged
thecrypticace merged 1 commit intomainfrom Dec 17, 2024
Merged
Conversation
RobinMalfait
approved these changes
Dec 17, 2024
Member
RobinMalfait
left a comment
There was a problem hiding this comment.
I think this is a good quickfix solution
yoyo837
reviewed
Dec 18, 2024
| return lazyJiti()(path) | ||
|
|
||
| // Always use jiti for ESM or TS files | ||
| if ( |
There was a problem hiding this comment.
That's one way to create a code smell. Approved. ;D
benceruleanlu
added a commit
to Comfy-Org/ComfyUI_frontend
that referenced
this pull request
Aug 28, 2025
Fixed PostCSS build error "Cannot read properties of undefined (reading 'call')" that occurred with tailwindcss 3.4.4 when using Node.js 22.12+. The issue was caused by Node.js module resolution changes that broke plugin loading. Tailwind CSS 3.4.17 includes a workaround that always uses jiti for config loading to ensure consistent module resolution. Refs: tailwindlabs/tailwindcss#15374, tailwindlabs/tailwindcss#15421 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15374
If we always use Jiti the problem should, in theory, go away (I hope). It does mean that loading configs is slower than it would be if they're written in CJS but 🤷♂️
Wanna get this running with the integration tests to see if anything breaks.