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

fix(cloud-function): use ts-node via NODE_OPTIONS #10873

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 9, 2024

Summary

Problem

We upgraded to latest Node v18, which no longer works well with direct invocation of ts-node, but we missed to change the /cloud-function scripts.

Solution

Specify the ts-node/esm loader via NODE_OPTIONS instead.


How did you test this change?

Ran npm run build-redirect and npm run proxy locally with Node 18.20.1.

@caugner caugner requested a review from fiji-flo April 9, 2024 08:58
@caugner caugner requested a review from a team as a code owner April 9, 2024 08:58
@caugner caugner requested a review from mdn-bot as a code owner April 9, 2024 09:17
@caugner caugner force-pushed the fix-cloud-function-use-node-options branch from 36512bb to 4fc0b05 Compare April 9, 2024 09:20
@caugner caugner merged commit 512ebb0 into main Apr 9, 2024
13 checks passed
@caugner caugner deleted the fix-cloud-function-use-node-options branch April 9, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants