Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a targeted error message suggesting the 'use node' directive (#32…
…710) <img width="707" alt="Screenshot 2025-01-02 at 17 17 03" src="https://github.com/user-attachments/assets/f79a363c-ce8d-4c14-a6cf-b94b76964b4d" /> This is a semi-common error message (often from a library that depends on node, or some code copy pasted in that required Node) and it's not obvious that the solution is `"use node"`. This tries to at least detect the error message and suggest `"use node"`. There might be more advanced ways of detecting which source file / which import might be causing the issue, but this seems like a good start. GitOrigin-RevId: 5e8c1b0c8614ace83c0d80787ed5f68a86fd5ce4
- Loading branch information