Conversation
Two problems: 1. source-map@0.7.3 does not work on node 18 2. need to set --openssl-legacy-provider because webpack is using openssl in a legacy way that was changed in node 17.
I think the danger with this approach is that we might forget to replace the unreleased SHA with an official version of Since the ultimate goal of this is to unblock us to use Node 18, I'd be inclined to suggest we wait until we'll need to run on 18 instead of half-heartedly upgrading What do you think? |
|
There's no rush to upgrade right now, but also, the request to upgrade source-map has been open for a while and there still hasn't been a release. My concern is that when vscode moves to node 18, this extension will be broken until we get a new version of source-map (and fix the other problems). At this point, we're going to need to scramble to fix it fast. It's hard to tell how often vscode updates its node versions. Maybe every 8 months? And the last time was in March. I don't want to get blindsided by this in the future, but we don't need to fix this now. |
|
@aeisenberg Good news! Looks like a fix was merged into source-map to address the failing build (in Oct 2020): mozilla/source-map#423. And a new release (0.7.4) containing the fix was pushed 10 days ago, which is quite Nice of them. ;) I've just tested this (branch) with the steps described in the original issue and the build now works correctly. |
|
Thanks for looking into this. That's good news. Would you mind pushing up your change? |
e86b4a7 to
50b3413
Compare
A new release of source-map was pushed 10 days ago: https://github.com/mozilla/source-map/releases/tag/v0.7.4 It contains a fix for building on Node 18 (which was added in Oct 2020): mozilla/source-map#423. Let's make use of it!
50b3413 to
491d02a
Compare
da54ca9 to
ebc2acd
Compare
ebc2acd to
7efe3ea
Compare
|
Closing in favour of #1378. |
Two problems:
openssl in a legacy way that was changed in node 17.
Fixes #1373
I'm reticent to merge this change even if it does work since we are pointing directly to a git repo and an unreleased sha for
source-map. If a new release is not made before we need to upgrade to node 18, we may need to fork the repo and release a version ourselves.Checklist
ready-for-doc-reviewlabel there.