dozoisch / koa-react-full-example Goto Github PK
View Code? Open in Web Editor NEWFull example using Koa, React, Passport, Mongoose, Webpack, Mocha, Babel
License: MIT License
Full example using Koa, React, Passport, Mongoose, Webpack, Mocha, Babel
License: MIT License
React-router v1 introduces breaking changes that require rewrite in App.js.
Hi, thanks for this example. I haven't tried previous versions but with v0.3.2 when it comes to gulp install
I get
[18:49:13] Using gulpfile ~/Sites/koa-react-full-example/gulpfile.js
[18:49:13] Starting 'jsx-compile'...
[18:49:13] Starting 'copy-js'...
[18:49:13] Starting 'less-compile'...
[18:49:13] Starting 'write-build-info'...
[18:49:13] Finished 'copy-js' after 26 ms
/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/index.js:68
}).done(undefined, cb);
^
TypeError: undefined is not a function
at DestroyableTransform._transform (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/index.js:68:8)
at DestroyableTransform.Transform._read (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
at write (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-if/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
at flow (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-if/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
at DestroyableTransform.pipeOnReadable (/Users/Brandon/Sites/koa-react-full-example/node_modules/gulp-if/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
at DestroyableTransform.emit (events.js:104:17)
npm install
and npm install -g gulp
both worked, and I did npm update -g
for good measure but no change. OS X 10.10.2 with Node 0.12.
Just tried to do a clean install and got the following error:
koa-react-full-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126
if (!option) this.log.error("Unknown option: " + alias + "." + key, ReferenceError);
^
TypeError: Cannot read property 'error' of undefined
node -v: v5.9.0
npm -v: 3.7.3
Not sure what else to check for, and I'm still relatively new to babel so I might be missing something there. Will appreciate any tips, thanks!!
when I run
npm run hot-dev-server
i get
[email protected] hot-dev-server /home/duma/Projects/Personal/koa-react-full-example
webpack-dev-server --content-base public -ds --config webpack.config.js --hot --progress --colors --port 2992 --inline
70% 1/1 build moduleshttp://localhost:2992/
webpack result is served from //localhost:2992/_assets/
content is served from /home/duma/Projects/Personal/koa-react-full-example/public
/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/node/NodeWatchFileSystem.js:29
throw new Error("Invalid arguments: 'delay'");
^
Error: Invalid arguments: 'delay'
at NodeWatchFileSystem.watch (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/node/NodeWatchFileSystem.js:29:9)
at Watching.watch (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:78:47)
at Watching._done (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:74:8)
at Watching. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:52:18)
at Tapable.emitRecords (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:271:37)
at Watching. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:49:19)
at /home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:264:11
at Tapable.applyPluginsAsync (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
at Tapable.afterEmit (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:261:8)
at Tapable. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:256:14)
[serge:mbp koa-react-full-example-master]$ npm install
[serge:mbp koa-react-full-example-master]$ gulp install
module.js:322
throw err;
^
Error: Cannot find module 'jstransform/visitors/es6-arrow-function-visitors'
at Function.Module._resolveFilename (module.js:320:15)
at Function.Module._load (module.js:262:25)
at Module.require (module.js:349:17)
at require (module.js:368:17)
at Object.<anonymous> (/Users/serge/projects/test/koa-react-full-example-master/node_modules/gulp-react/node_modules/react-tools/vendor/fbtransform/visitors.js:2:25)
at Module._compile (module.js:444:26)
at Object.Module._extensions..js (module.js:462:10)
at Module.load (module.js:339:32)
at Function.Module._load (module.js:294:12)
at Module.require (module.js:349:17)
at require (module.js:368:17)
[serge:mbp koa-react-full-example-master]$ node --version
v1.3.0
Hey,
There's probably a simple solution to this, but I don't get a login page after following all of the instructions. Instead, I just get a line of text and a changelog link: "Version - 0.6.0 #1a22bb1 - Changelog." What am I doing wrong here? Didn't see any errors during the process of installing. I'm running nodejs v0.12.7, mongodb shell version is 3.0.4, npm version 2.11.3, on Debian 7.
Mitch
I met npm audit fix while install project
Using server-side rendering would be nice!
Waiting for : remix-run/react-router#57
as the title ,where is build/stats.json...
Error: Cannot find module '../../build/stats.json'
React-nested-router changed it's name!
My node version is the latest v5.7.0 and did npm install
in the downloaded project, however, I got the following errors when running npm run prod
:
Error: Cannot find module 'bcrypt'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/xxx/Desktop/Code/nodeJS/koa/koa-react-full-example/lib/bcrypt-thunk.js:2:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/xxx/Desktop/Code/nodeJS/koa/koa-react-full-example/src/models/user.js:2:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
I did npm install bcrypt --save
as well, but the problem persists. any ideas where might be wrong?
Hi, just curious if you planned on adding Reflux or had feelings either way on a PR for it. The current implementation of the Auth store isn't too far off already. Thanks for this repo!
Just curious if you had any interest in PostgreSQL support. I was looking at using something like postgres-gen
I get 404 on the /main.js when running this project untouched via npm run hot-dev-server
. Thoughts on where to start?
So, it seems it is serving it up via /_assets/main.js
but the file dev-server-public/index.html
refers to it as main.js
in the current directory?
I ran into a couple problems building the current (174015c) koa-react-full-example on OSX 10.9. I started by git clone from the github repo, then ran these commands:
npm install
got several errors: http://pastebin.com/awweJkQf
npm run build && npm test
got different errors: http://pastebin.com/GvCYrHs1
Any thoughts for resolving this? Should I wait 'til my new 10.10 machine comes in next week? Thanks!
Update: There was no npm-debug.log file generated...
I am running into errors like below, any help here?
/koa-react-full-example-master/node_modules/bcrypt/node_modules/bindings/bindings.js:79
throw e
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:349:32)
at Function.Module._load (module.js:305:12)
at Module.require (module.js:357:17)
at require (module.js:373:17)
most of the dependencies are out of date, makes this example obsolete.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.