Closed n8sabes closed 4 years ago
Looks like I need to make the same changes to is-weakmap and is-weakset.
@ljharb, Just did a yarn upgrade --latest
on the vanilla my-app CRA project and got the same is-weakmap
error (below). To be extra-sure, did a clean CRA install, following initial post.
./node_modules/is-weakmap/index.js
SyntaxError: .../my-app/node_modules/is-weakmap/index.js: 'return' outside of function (12:1)
10 | return false;
11 | };
> 12 | return;
| ^
13 | }
14 |
15 | var $mapHas = $WeakMap ? $WeakMap.prototype.has : null;
error Command failed with exit code 1.
I'm skilled (enough) with the package manager (yarn / npm), but no expert. Is there something special I need to do to get the fixes?
@n8sabes that's because the fixes aren't released yet. issues get closed when the fix lands on master, not when they're released.
v2.0.1 of is-weakmap
and is-weakset
are released.
Thank you @ljharb -- Everything is working quite nicely again!!
Related to #78,
deep-equal
v2.0.1 is now causing a 'return' outside of function (12:1) compiler error fromis-weakmap
, subsequent fixes tois-map
andis-set
.STEPS
COMPILER ERROR: