Skip to content

Conversation

@aabounegm
Copy link
Contributor

@aabounegm aabounegm commented Jan 4, 2026

There are 2 imports of node:utils/types that caused the core typir package code to not be compatible with non-Node.js environments (specifically, web). This causes an issue when trying to build web playground for a Langium project (for example, my project stella).
I replaced those utilities with their native JavaScript equivalent.
Fixes #96

@JohannesMeierSE
Copy link
Collaborator

Thanks for the fix and sorry for my delay, since I was too busy for Typir.
Since #98 is a duplicate, I could merge only one PR, but will mention both of them in the changelog.

@montymxb
Copy link
Member

Totally overlooked that there was already a PR for this, sorry @aabounegm didn't mean to step on your toes there, hope that solution in #98 works as well.

@aabounegm
Copy link
Contributor Author

@montymxb No worries, the important thing is that it is fixed, and your solution is better anyway :)

I'll close this PR now since the other is merged already. I hope a patch version can be released soon so I can fix my project's playground

@aabounegm aabounegm closed this Jan 12, 2026
@aabounegm aabounegm deleted the hotfix/node-dependency branch January 12, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of node.js builtins (util/types)

3 participants