You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
I found this bug when trying to tweak create-react-app -made app's tests. The code works properly without -r esm and fails really weirdly with it. It seems that while it runs the right constructor function properly, the resulting object doesn't have the correct prototype. I don't think that react (or react-create-app' is crucial for this test case, but it's this one is less than a minute to set up.
To test: npx create-react-app esm-crats-test --scripts-version=react-scripts-ts cd esm-crats-test git init (forgot this initially) yarn add esm
Run yarn run test to verify that non-esm version works properly. Quit test with q.
Run ./node_modules/react-scripts-ts/bin/react-scripts-ts.js -r esm test --env=jsdom which will fail.
The text was updated successfully, but these errors were encountered:
I found this bug when trying to tweak create-react-app -made app's tests. The code works properly without
-r esm
and fails really weirdly with it. It seems that while it runs the right constructor function properly, the resulting object doesn't have the correct prototype. I don't think that react (or react-create-app' is crucial for this test case, but it's this one is less than a minute to set up.To test:
npx create-react-app esm-crats-test --scripts-version=react-scripts-ts
cd esm-crats-test
git init
(forgot this initially)yarn add esm
Run
yarn run test
to verify that non-esm version works properly. Quit test withq
.Run
./node_modules/react-scripts-ts/bin/react-scripts-ts.js -r esm test --env=jsdom
which will fail.The text was updated successfully, but these errors were encountered: