Questions tagged [nwb]
23 questions
4
votes
1 answer
how to export modules in subfolders without including /lib folder in import statement
i'm using nwb to create a new library.
using default settings, nwb will use build project to cjs and es6 and umb and include builds in /lib folder
example project structure
-src
--ModuleA
--- index.js
--- helperForA.js
--ModuleB
---…

Zalaboza
- 8,899
- 16
- 77
- 142
3
votes
0 answers
Publish existing create-react-app using nwb
I have an existing React application built with create-react-app version 2. I understand that I'll either have to eject it or use a tool like nwb to publish it to npm.
Can I use npm on an existing project? From reading the docs it seems I have to…

dorriz
- 1,927
- 3
- 12
- 19
3
votes
1 answer
How to inject environment variables into React during build
I am currently using Neutrinojs and have gotten burned by the compatiblity issues arising with v8. the solution seems to be "Use Neutrino v.9 beta" but in that scenario many features I've come to depend on in v.8 have gotten screwy.
Specifically…

Dave Edelhart
- 31
- 1
- 2
3
votes
1 answer
babel: polyfill Array.from for IE11 support
I'm currently having trouble getting my React application working in IE11. The problem seems to be that some of the newer ES6 stuff isn't available in IE11. So my goal is to polyfill the missing functionality. I'm using nwb [1] which is a…

Gerb
- 883
- 12
- 31
2
votes
1 answer
TypeScript : Child process failed to process the request: Error: Debug Failure
I am getting below error in typescript while doing nwb serve-react-demo
Child process failed to process the request: Error: Debug Failure. False expression.
at resolveNamesWithLocalCache…

Ramesh Sarthi
- 64
- 7
2
votes
1 answer
Alternatives of nwb in react components
I have a react applications which is very old and configured manualy. I have used nwb packages for building and publishing the packages. nwb seems to produce lots of vulnerabilities and that's why I would like to remove and replace with some other…

saon
- 591
- 1
- 7
- 19
2
votes
0 answers
CSS modules won't import in NextJS when using a module created using nwb
I created a React component and uploaded it to a private git repo. It's a fairly simple component that renders a data table that can be sorted etc. I used nwb to for the setup / build process (https://github.com/insin/nwb).
It's not published on…

Mike Willis
- 1,493
- 15
- 30
2
votes
1 answer
Why does an npm module I wrote install so many packages after creating project with create-react-app?
I wrote this npm module, react-heartbeat, using nwb. When I install this module in a new project, npm i react-heartbeat, just after running npm init it takes less than 2 seconds and only installs 1 package. When I install this module, again npm i…

Scott Price
- 33
- 5
2
votes
3 answers
Packaged published to npm is almost empty: Just publish README, LICENSE and package.json
I have a react component project created with nwb. I'm using Travis and semantic-release to make the releases.
But now, when I publish a new version, the package published from Travis is almost empty, and only have three files: README, LICENSE and…

A. Iglesias
- 2,625
- 2
- 8
- 23
2
votes
0 answers
Material-UI not working (using nwb)
After click:
I try to test Material-UI components.
My steps:
I installed nwb globally: sudo npm install -g nwb
I created a new React application: nwb new react-app myapp
I look inside: cd myapp
I edited nwb.config.js (since Webpack creates…

Alex Pilugin
- 683
- 2
- 10
- 38
1
vote
0 answers
ignore stories.js files from ./src when performing nwb build-react-component
I searched numbers of articles in google and read through their doc(https://github.com/insin/nwb/blob/master/docs/Commands.md#nwb-build) and issues, I can't find anything. but my nwb build brings in .stories.js files into the ./dist directory after…

ey dee ey em
- 7,991
- 14
- 65
- 121
1
vote
0 answers
React Unit Test expect/nwb how to simulate componentDidMount
I have my InputLocation Component with children:
InputName
DrawLocation
I want to make some unit test to check my component, but I have a problem with simulating componentDidMount cycle.
InputName component depends on and displays when…

karo-s
- 384
- 2
- 15
1
vote
1 answer
How to set environment variables using React and nwb
I have a component library made with create-react-app where I'm using nwb to serve a demo application to test the components.
Right now the application is served by running the command nwb serve-react-demo which starts the demo app with no issues.
I…

matsomo
- 460
- 1
- 6
- 16
1
vote
1 answer
npm run build for React app using incorrect path for index.js source
My npm run build fails with this:
✖ Building demo
Failed to compile with 1 error.
ERROR in multi ./node_modules/nwb/polyfills.js ./demo/src/index.js
Module not found: Error: Can't resolve '/Users/david/git/demoapp/demo/src/index.js' in…

oldDave
- 395
- 6
- 25
1
vote
1 answer
allen-sdk get_flourescence_timeStamps
I believe I am downloading the NWB files properly as I am able to get the df/F traces and stimuli information without trouble. However, I am receiving an error when I try to call "get_running_speed":
AttributeError: 'BrainObservatoryNwbDataSet'…

Jeremiah
- 11
- 1