persianturtle / rescript-react-boilerplate Goto Github PK
View Code? Open in Web Editor NEWAn opinionated app shell for ReScript & React progressive web apps
Home Page: https://rescript-react-boilerplate.persianturtle.com
License: MIT License
An opinionated app shell for ReScript & React progressive web apps
Home Page: https://rescript-react-boilerplate.persianturtle.com
License: MIT License
When installing the node modules the first time with npm install
, I got the following error:
code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/colors/-/colors-1.4.1.tgz - Not found
npm ERR! 404
npm ERR! 404 'colors@https://registry.npmjs.org/colors/-/colors-1.4.1.tgz' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git URL.
The error went away after deleting the package-lock.json
file and rebuilding it.
D:\CRIME\reason-app-shell-starter-kit>npm install
npm WARN deprecated [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
> [email protected] postinstall D:\CRIME\reason-app-shell-starter-kit\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall D:\CRIME\reason-app-shell-starter-kit\node_modules\ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> [email protected] postinstall D:\CRIME\reason-app-shell-starter-kit\node_modules\bs-platform
> node scripts/install.js
ninja binary is copied from pre-distribution
checkoutput: BuckleScript 7.1.1 ( Using OCaml:4.06.1+BS )
ocaml version 4.06.1+BS
Prebuilt compiler works good
Cleaning... 0 files.
[315/315] stdlib-406/unixLabels.ml -> stdlib-406/unixLabels.cmj
Build finished
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.13.0"} (current: {"node":"10.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 968 packages from 539 contributors and audited 11071 packages in 185.752s
26 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
D:\CRIME\reason-app-shell-starter-kit>npm start
> [email protected] start D:\CRIME\reason-app-shell-starter-kit
> npm-run-all --parallel start:*
> [email protected] start:webpack D:\CRIME\reason-app-shell-starter-kit
> webpack-dev-server
> [email protected] start:bsb D:\CRIME\reason-app-shell-starter-kit
> bsb -clean-world -make-world -w
Cleaning... 46 files.
[37/37] ?[34mBuilding?[39m ?[2msrc\ReactDOMRe.cmj?[22m
>>>> Start compiling
[34/34] ?[34mBuilding?[39m ?[2msrc\Index-ReasonCarousel.cmj?[22m
>>>> Finish compiling 722 mseconds
i 「wds」: Project is running at http://localhost:8080/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from D:\CRIME\reason-app-shell-starter-kit
× 「wdm」: Hash: 4ff74a3bfa4254510afa
Version: webpack 4.41.6
Time: 1091ms
Built at: 02/19/2020 11:30:24 AM
Asset Size Chunks Chunk Names
icon_400x400.891778b57a460ec20cd6c717511aeb5d.png 21.8 KiB [emitted]
index.html 1.04 KiB [emitted]
main.319c78ab3f78a2eeab60.js 1.82 MiB main [emitted] [immutable] main
manifest.60ba7c5f5cbd169e6bcf4128016b6ed6.json 365 bytes [emitted]
sw.js 3.88 KiB [emitted]
Entrypoint main = main.319c78ab3f78a2eeab60.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 ./lib/es6/src/Index.bs.js 40 bytes {main} [built]
[./lib/es6/src/App.bs.js] 8.27 KiB {main} [built]
[./lib/es6/src/Index.bs.js] 1.14 KiB {main} [built]
[./lib/es6/src/Router.bs.js] 2.92 KiB {main} [built]
[./node_modules/react/index.js] 190 bytes {main} [built]
[./node_modules/reason-react/lib/es6/src/ReactDOMRe.js] 2.43 KiB {main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/styled-components/dist/styled-components.browser.esm.js] 61.9 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 4.29 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {main} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {main} [built]
+ 85 hidden modules
ERROR in Can't find self.__WB_MANIFEST in your SW source.
Child InjectManifest:
Asset Size Chunks Chunk Names
sw.js 3.88 KiB InjectManifest [emitted] InjectManifest
Entrypoint InjectManifest = sw.js
[./src/sw.js] 126 bytes {InjectManifest} [built]
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 1.14 KiB {0} [built]
[./node_modules/lodash/lodash.js] 528 KiB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
i 「wdm」: Failed to compile.
ReasonML has been rebranded to ReScript.
The docs outline how to migrate a project from ReasonML to ReScript.
Arrays are the default in ReScript, so let's convert the lists to arrays.
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.