-
Notifications
You must be signed in to change notification settings - Fork 331
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
Out of the box react-component project fails test execution with "TypeError: Object is not a constructor" #570
Comments
I'm seeing a similar issue on Mac 11.15. NPM 7.7.6, Node 15.14.0. I've even tried downgrading to [email protected] with these steps with the same issue:
|
I found a project on github that completes its tests. It is using nwb 0.23.0.
|
Blindly updating to 0.25.2 in package.json failed with a different, but seemingly related error:
|
I see there is a commit that changed from PhantomJS to ChromeHeadless. I tried changing the above to use it instead and got the same polyfill error. But when I reverted to 0.23.0, ChromeHeadless worked marvelously. |
I see that the latest bleeding code has removed polyfill, so hopefully @insin is already has a fix for this in the next release. |
I've gotten past the issue. It looks like a new release will help. This is what I did to accomplish it: cd node_modules
rm -rf nwb
git clone https://github.com/insin/nwb.git
cd nwb
yarn
yarn build
chmod a+x ../.bin/nwb
cd ../..
yarn test |
This issue is a:
This issue is reproducible with the repository
https://github.com/itzg/try-nwb-react-component
however, it contains completely out of the box content from
nwb new react-component
other than the modifiedREADME.md
nwb is installed globally and the following transcript show how the
npm run test
fails with no modifications on my part.Added
DEBUG=nwb
and now it fails in a different way prior to karma invocation:This might be a duplicate of #496 ; however, that issue has gone dormant and this current is easily reproducible.
The text was updated successfully, but these errors were encountered: