jordwest / bs-snabbdom Goto Github PK
View Code? Open in Web Editor NEWBucklescript + Snabbdom
Bucklescript + Snabbdom
Hi,
I just installed bs-snabbdom and snabbdom from npm, but I can't manage to get attributes to work. Maybe some breaking changes on the snabbdom side?
Just dit npm install bs-snabbdom
but I couldn't use it without installing from git.
I don't think the npm versions has #7
There should be no reason to include compiled JavaScript in the source repository.
In node_modules/bs-snabbdom/lib
the ocaml
subdir is missing โ I only get es6
and js
.
Is that my error or is there something wrong in the packaging?
I have installed the bs-platform and I can successfully run bucklescript-tea-starter-kit , but failed to run this example
npm run build
[email protected] build /home/d/work/bs-snabbdom-master
bsb && rollup --config
BSB check build spec : Dependencies information missing
Package bs-platform -> /home/d/node_modules/bs-platform
ninja.exe -C lib/bs
ninja: Entering directory `lib/bs'
[28/28] Building src/snabbdom_events.mlast.d
[1/14] Building src/snabbdom_dom.cmi
FAILED: src/snabbdom_dom.cmi
/usr/local/lib/node_modules/bs-platform/bin/bsc.exe -bs-package-name bs-snabbdom -bs-package-output es6:lib/es6/src -bs-package-output commonjs:lib/js/src -bs-no-builtin-ppx-mli -bs-no-implicit-include -I src -nostdlib -I '/home/d/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -w -40+6+7+27+32..39+44+45 -o src/snabbdom_dom.cmi -c src/snabbdom_dom.mliast
File "command line", line 1:
Error: Unbound module Pervasives
[2/14] Building src/snabbdom_data.cmi
FAILED: src/snabbdom_data.cmi
/usr/local/lib/node_modules/bs-platform/bin/bsc.exe -bs-package-name bs-snabbdom -bs-package-output es6:lib/es6/src -bs-package-output commonjs:lib/js/src -bs-no-builtin-ppx-mli -bs-no-implicit-include -I src -nostdlib -I '/home/d/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -w -40+6+7+27+32..39+44+45 -o src/snabbdom_data.cmi -c src/snabbdom_data.mliast
File "command line", line 1:
Error: Unbound module Pervasives
[3/14] Building src/snab....js src/snabbdom_simple_store.cmi
FAILED: src/snabbdom_simple_store.cmj /home/d/work/bs-snabbdom-master/lib/js/src/snabbdom_simple_store.js /home/d/work/bs-snabbdom-master/lib/es6/src/snabbdom_simple_store.js src/snabbdom_simple_store.cmi
/usr/local/lib/node_modules/bs-platform/bin/bsc.exe -bs-package-name bs-snabbdom -bs-package-output es6:lib/es6/src -bs-package-output commonjs:lib/js/src -bs-assume-no-mli -bs-no-builtin-ppx-ml -bs-no-implicit-include -I src -nostdlib -I '/home/d/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -w -40+6+7+27+32..39+44+45 -o src/snabbdom_simple_store.mlast -c src/snabbdom_simple_store.mlast
File "command line", line 1:
Error: Unbound module Pervasives
ninja: build stopped: subcommand failed.
Error: Command failed: /usr/local/lib/node_modules/bs-platform/bin/bsb.exe
Error happened when running command /usr/local/lib/node_modules/bs-platform/bin/bsb.exe with args []npm ERR! Linux 4.12.8-041208-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:bsb && rollup --config
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'bsb && rollup --config'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bs-snabbdom package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bsb && rollup --config
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bs-snabbdom
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bs-snabbdom
npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:
npm ERR! /home/d/work/bs-snabbdom-master/dist/npm-debug.log
dist/npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]prebuild: [email protected]prebuild: no script for prebuild, continuing
6 silly lifecycle [email protected]
7 info lifecycle [email protected]build: [email protected]build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]build: PATH: /usr/share/npm/bin/node-gyp-bin:/home/d/work/bs-snabbdom-master/node_modules/.bin:/home/d/.opam/4.02.3+buckle-master/bin:/home/d/node_modules/bs-platform/jscomp/bin/:/home/d/.opam/4.02.3+buckle-master/bin/:/home/d/.cargo/bin:/home/d/.cabal/bin/:/home/d/software/:/home/d/bin:/home/d/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binbuild: CWD: /home/d/work/bs-snabbdom-master
10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]build: Args: [ '-c', 'bsb && rollup --config' ]build: Returned: code: 2 signal: null
12 silly lifecycle [email protected]
13 info lifecycle [email protected]~build: Failed to exec build script
14 verbose stack Error: [email protected] build:bsb && rollup --config
14 verbose stack Exit status 2
14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:821:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/d/work/bs-snabbdom-master/dist
17 error Linux 4.12.8-041208-generic
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
19 error node v4.2.6
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error [email protected] build:bsb && rollup --config
22 error Exit status 2
23 error Failed at the [email protected] build script 'bsb && rollup --config'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the bs-snabbdom package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error bsb && rollup --config
23 error You can get information on how to open an issue for this project with:
23 error npm bugs bs-snabbdom
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls bs-snabbdom
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
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.