Comments (6)
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:
$ npm install --global [email protected]
...
$ nwb --version
v0.24.7
$ nwb new react-component nwb-rc-0.24.7
(accept default settings)
$ cd nwb-rc-0.24.7
$ yarn
...
$ yarn test
yarn run v1.22.10
warning ../package.json: No license field
$ nwb test-react
START:
16 08 2021 13:30:25.090:INFO [karma-server]: Karma v4.4.1 server started at http://0.0.0.0:9876/
16 08 2021 13:30:25.092:INFO [launcher]: Launching browsers PhantomJS with concurrency unlimited
16 08 2021 13:30:25.118:INFO [launcher]: Starting browser PhantomJS
16 08 2021 13:30:26.536:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket Bi_5BjhCWHKLs639AAAA with id 98992079
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
TypeError: Object is not a constructor (evaluating 'getPolyfill()')
at webpack:///node_modules/reflect.getprototypeof/index.js:10:1 <- tests/index.test.js:35482:33
Finished in 0.228 secs / 0 secs @ 13:39:34 GMT-0400 (Eastern Daylight Time)
SUMMARY:
✔ 0 tests completed
Karma exit code was 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
from nwb.
I found a project on github that completes its tests. It is using nwb 0.23.0.
git clone https://github.com/ucscXena/XenaGoWidget.git 2400727b6d5ec90b7a7a87703155c1cbe61c24a5
cd XenaGoWidget
npm install
npm run test
from nwb.
Blindly updating to 0.25.2 in package.json failed with a different, but seemingly related error:
√ XenaGoWidget % npm run test
> [email protected] test
> NODE_OPTIONS=--max_old_space_size=4096 nwb test-react --timeout 20000
nwb config report for /Users/markeklund/play/XenaGoWidget/nwb.config.js
Error
✖ babel.runtime = 'polyfill'
Must be an Object (to configure transform-runtime options) or false (to disable use of the runtime-transform plugin)
from nwb.
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.
from nwb.
I see that the latest bleeding code has removed polyfill, so hopefully @insin is already has a fix for this in the next release.
from nwb.
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
from nwb.
Related Issues (20)
- Bundling all CSS and JS into one file each
- Feature request - React Browser Extensions boilerplate
- Support for ie11 in UMD module ?
- how can I use with customize-cra?
- The less file is not compiled into css ,nwb-less is already installed
- Error when running new react-component
- How to Config babel.config to extend classes
- When Sass modules are enabled, Sass imports stop working. How Can I enable both at the same time? HOT 1
- Including Dependency Stylesheet(s) in Build?
- Export Webpack Configuration File HOT 1
- test failures with object.getprototypeof 1.0.1
- es lib There is no css file in it
- webpack.resolve.extensions: ❌ webpack = 'resolve' Unexpected prop in webpack config HOT 1
- Avoid NextJS module import error
- [QUESTION]how to ignore stories.js files from ./src when performing nwb build-react-component HOT 1
- Release with phantom dependencies removed?
- Testing.md Documentation Broken Link
- fresh nwb new react-component compilation crashes HOT 1
- Can't install nwb on apple m1 chip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwb.