-
Notifications
You must be signed in to change notification settings - Fork 118
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
Remove the with keyword #1769
base: main
Are you sure you want to change the base?
Remove the with keyword #1769
Conversation
The with keyword is deprecated and causes problems on the latest LTS node versions in strict mode. We can remove the with keyword here and original functionality should continue to work.
Hi @KevinGrandon, thank you for opening this PR. Have you considered what @lizkenyon described here? Does it not apply anymore? |
Thanks for the comment @matteodepalo and the previous fix @lizkenyon. I am having issues updating my Shopify app to node 20 due to this statement. I'm guessing this is not an issue here because there are no remix tests that run on node 20 in CI? As far as I can tell dropping it should be fine. Here's a comparison of the built file in main vs this PR: |
You have to use one of the following node versions: |
@matteodepalo Thank you - could you give me steps on the best way to reproduce this failure? I'm happy to work through it. |
@KevinGrandon sure, I:
|
WHY are these changes introduced?
This repository currently uses the with keyword when importing JSON. This keyword is deprecated and causes problems on the latest LTS node versions in strict mode.
WHAT is this pull request doing?
Remove the with keyword as it is not needed.
Type of change
Checklist
pnpm changeset
to create a draft changelog entry (do NOT update theCHANGELOG.md
files manually)