Comments (7)
Sorry been away on vacation, I'll take a look at this when I get a chance. What node version are you on?
from react-redux-starter-kit.
v0.12.7
Thank You for checking on this.
from react-redux-starter-kit.
Hey, it's difficult for me to debug this since I don't have access to a Windows machine. Could you try running npm run compile
and (if that works) npm run server:start
and see if either of those work? I'll keep searching around for some answers in the meantime.
There's also been a few commits to master since 0.5.0, so if you could try pulling those down and re-installing your npm dependencies that might help eliminate additional variables.
from react-redux-starter-kit.
Ok, pulled down latest and ran npm run build
. Here's what it spit out:
npm run compile
> [email protected] compile F:\_vms\HomesteadCode\_live\misc\react-redux-starter-kit
> webpack
net.js:633
throw new TypeError('invalid data');
^
TypeError: invalid data
at WriteStream.Socket.write (net.js:633:11)
at execFileSync (child_process.js:1364:20)
at Function.module.exports.sync (F:\_vms\HomesteadCode\_live\misc\react-redux-starter-kit\node_modules\yargs\node_modules\os-locale\index.js:78:16)
at Argv (F:\_vms\HomesteadCode\_live\misc\react-redux-starter-kit\node_modules\yargs\index.js:22:22)
at Object.<anonymous> (F:\_vms\HomesteadCode\_live\misc\react-redux-starter-kit\node_modules\yargs\index.js:10:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "compile"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] compile: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] compile script 'webpack'.
npm ERR! This is most likely a problem with the react-redux-starter-kit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack
npm ERR! You can get their info via:
npm ERR! npm owner ls react-redux-starter-kit
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! F:\_vms\HomesteadCode\_live\misc\react-redux-starter-kit\npm-debug.log
from react-redux-starter-kit.
So, looking at that stack trace, I'm wondering if it's related to the usage of yargs
at all. Really trying to refrain from just shotgunning ideas, but it's my best one at the moment.
I've created a branch: https://github.com/davezuko/react-redux-starter-kit/tree/test/remove-yargs that removes the usage of argv
in the build process. Could you switch over to that branch and try npm run dev
or npm run compile
again? No need to reinstall any of your dependencies.
Sorry that I can't troubleshoot this more cleanly; if this doesn't improve things I'll try to spin up a Windows VM or something.
from react-redux-starter-kit.
Cool! That did the trick. Thank You :)
from react-redux-starter-kit.
Ok, well that means 2 things for you then:
-
Right now the global variable
__DEBUG__
will always be true unlessNODE_ENV
is"production"
, rather than if a--debug
CLI arg was present. Consequently,npm run dev
andnpm run dev:debug
are essentially the same. If you want to change when that flag is enabled (or just manually toggle it), you can do so in~/config/index.js
on line 22. -
This one doesn't have nearly the same level of impact, but similarly
npm run dev:quiet
is now the same asnpm run dev
, since the cli args aren't parsed. If you want to enable it for some reason (I really don't see the use case, personally) then that can be done in~/build/webpack-dev-server/index.js
by editingQUIET_MODE
.
I'll work on figuring out why exactly argv is causing issues, and hopefully find a fix that I can apply to the master branch.
from react-redux-starter-kit.
Related Issues (20)
- what is `@import '~bootstrap/scss/bootstrap.scss';` meaning at `src/styles/main.scss` HOT 2
- browserHistory.push change url path but not really loads the component.
- help wanted: Using javascript generator
- Modularizing code (Fractal setup)
- Migration to another project HOT 1
- Seeking New Maintainers HOT 8
- Reuse action creator in other Fractal route container
- verbose stack Error: [email protected] start: `better-npm-run start` HOT 1
- Can I use this kit for react native project?
- bootstrap data-toggle and data-target
- npm run deploy high cpu usage
- Heroku production deployment
- can not import semantic-ui-css/components/button.css
- Implement server side rendering in updated code.
- Implement server side rendering in updated code.
- Unable to create zip with data Node issue
- I am running on AWS Cloud9 HOT 1
- How to save the parameters passed during the routing jump and to apply this parameter when refreshing the page. HOT 1
- Server/main.js Routes
- Safari Unexpected token const
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 react-redux-starter-kit.