jaredly / a-reason-react-tutorial Goto Github PK
View Code? Open in Web Editor NEWincluded code for A ReasonReact Tutorial
Home Page: https://jaredforsyth.com/2017/07/05/a-reason-react-tutorial/
included code for A ReasonReact Tutorial
Home Page: https://jaredforsyth.com/2017/07/05/a-reason-react-tutorial/
First of all, thank you for writing this tutorial. It is a good starting point for learning ReasonReact ๐ .
I've been following the tutorial and there, you are using ReasonReact.reducerComponent
but in the repo, I just can see ReasonReact.statefullComponent
. I'm following the tutorial and I can't figure out what I'm doing wrong.
It seems like there is a case error in the webpack.config.js
file for the Main.js
file (the entry point).
After cloning this repo and
npm install && npm start
I got the following error message:
FAILED: src/TodoApp.cmj /Users/mchabot/dev/reason/a-reason-react-tutorial/lib/js/src/TodoApp.js src/TodoApp.cmi
/Users/coucou/dev/reason/a-reason-react-tutorial/node_modules/bs-platform/lib/bsc.exe -bs-package-name reason-to-do -bs-package-output commonjs:lib/js/src -bs-assume-no-mli -bs-no-builtin-ppx-ml -bs-no-implicit-include -I /Users/coucou/dev/reason/a-reason-react-tutorial/node_modules/reason-react/lib/ocaml -I src -w -30-40+6+7+27+32..39+44+45+101 -nostdlib -I '/Users/mchabot/dev/reason/a-reason-react-tutorial/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -bs-re-out -bs-super-errors -o src/TodoApp.cmj -c src/TodoApp.mlast
We've found a bug for you!
/Users/mchabot/dev/reason/a-reason-react-tutorial/src/TodoApp.re 1:17-46
1 โ let component = ReasonReact.statelessComponent("TodoApp");
2 โ
3 โ let make = (children) => {
The module or file ReasonReact can't be found.
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "11.3.0"
error Found incompatible module
npm ERR! [email protected] postinstall: node scripts/install.js
I clone this starter repo and cd into a-reason-react-tutorial. When I do the npm start
, I get this:
> reason-to-do@ start /Volumes/P3/OCaml/a-reason-react-tutorial
> bsb -make-world -w
BSB check build spec : Dependencies information missing
Package bs-platform -> /usr/local/lib/node_modules/bs-platform
Package not found: resolving package reason-react in /
Fatal error: exception BuckleScript package reason-react not found or built , if it is not built
Please run 'bsb -make-world', otherwise please install it
Error: Command failed: /usr/local/lib/node_modules/bs-platform/bin/bsb.exe -make-world -w
Error happened when running command /usr/local/lib/node_modules/bs-platform/bin/bsb.exe with args [ '-make-world', '-w' ]
I have done npm install -g bs-platform
, and also npm link bs-platform
. I'm using node v6.11.2 on a Mac.
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.