Comments (24)
@acstll This might be of interest to you as well. Seems to be related to updating to snabbdom-to-html 2.1.0
from cycle-snabbdom.
@kaosat-dev Could you run npm ls
and tell me what version of snabbdom-to-html is installed?
from cycle-snabbdom.
yes : [email protected]
from cycle-snabbdom.
Could you try explicitly installing [email protected]
and reporting back if the error still exists?
from cycle-snabbdom.
Tried it, error still stays the same
from cycle-snabbdom.
edit: never mind my bad, even with older snabbdom-to-html versions it still fails
from cycle-snabbdom.
It's exactly the same error?
Do you mind posting it?
from cycle-snabbdom.
exactly the same : Full error message is :
Error: Cannot find module 'snabbdom-to-html' from '/home/xxx/dev/projects/GreenBotics/automaton/node_modules/cycle-snabbdom/lib'
from cycle-snabbdom.
Btw , if you cannot reproduce on your end, perhaps I can try a barebone version to see if it might be my browserify setup ?
from cycle-snabbdom.
I can only reproduce with snabbdom-to-html 2.1.0
from cycle-snabbdom.
@TylorS hey, I will take a look tomorrow morning and make sure 2.1.0 is correctly published and working (I'm away now).
Seems like a problem indeed with my package, I tried it in requirebin.com and got that same error.
Sorry about this!
from cycle-snabbdom.
~/code/tylors/cycle-snabbdom master*
❯ npm ls | grep snabbdom-to-html
├─┬ [email protected]
~/code/tylors/cycle-snabbdom master*
❯ npm run dist
> [email protected] predist /home/tylor/code/tylors/cycle-snabbdom
> rm -rf dist/ && mkdir dist/
> [email protected] dist /home/tylor/code/tylors/cycle-snabbdom
> browserify -t [babelify --global] -t browserify-shim --exclude rx --standalone CycleSnabbdom src/index.js -o dist/cycle-snabbdom.js
Error: Cannot find module 'snabbdom-to-html' from '/home/tylor/code/tylors/cycle-snabbdom/src'
at /home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:46:17
at process (/home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:173:43)
at ondir (/home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:188:17)
at load (/home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:69:43)
at onex (/home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:92:31)
at /home/tylor/code/tylors/cycle-snabbdom/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:82:15)
~/code/tylors/cycle-snabbdom master* 9s
❯ npm ls | grep snabbdom-to-html
├─┬ [email protected]
~/code/tylors/cycle-snabbdom master*
❯ npm run dist
> [email protected] predist /home/tylor/code/tylors/cycle-snabbdom
> rm -rf dist/ && mkdir dist/
> [email protected] dist /home/tylor/code/tylors/cycle-snabbdom
> browserify -t [babelify --global] -t browserify-shim --exclude rx --standalone CycleSnabbdom src/index.js -o dist/cycle-snabbdom.js
> [email protected] postdist /home/tylor/code/tylors/cycle-snabbdom
> uglifyjs dist/cycle-snabbdom.js -o dist/cycle-snabbdom.min.js
from cycle-snabbdom.
Thank you @acstll. Let me know if there is anything I can do to help?
from cycle-snabbdom.
2.1.0 is indeed broken, the lib
folder is missing from the package.
I will publish 2.1.1 and depracate ASAP.
from cycle-snabbdom.
👍
from cycle-snabbdom.
Thank you @acstll
from cycle-snabbdom.
The main export (toHMTL
) should work in 2.1.2. But init
and the modules
won't. I need to figure out how to set up the browser
key in package.json
. I could use some help here :-)
I will release 2.2.0 when it's fully working and deprecate all 2.1.x in npm.
from cycle-snabbdom.
@acstll I'll do some reading 👍
from cycle-snabbdom.
thanks a lot for the infos @TylorS and @acstll !
Let me know if I can also help with something!
from cycle-snabbdom.
Ah, looks like I was slow to move. this is the same issue I was experiencing as well, but it was being manifest as a build error.
I wanted to just add that the unit tests in here were passing for me, but the stuff testem kicked off were failing. This was after cloning the repo, while trying to troubleshoot (after experiencing the issue after pulling from npm)
from cycle-snabbdom.
This should be fixed with v1.1.0
Please let me know if there are anymore issues.
from cycle-snabbdom.
I just created an issue to keep track of the bug. I will let you kwow when I figure it out. Thank y'all.
from cycle-snabbdom.
@TylorS it seems to work ok now, thanks !
Should this get closed or remain open for @acstll updates ?
from cycle-snabbdom.
I'll close for now. If for any reason anyone needs to reopen or continue discussing, feel free.
from cycle-snabbdom.
Related Issues (13)
- Any progress on the 'dirty hack' in Index.js? HOT 13
- parseTree not handling null vTree HOT 18
- v1.0.1 throwing errors with empty children arrays? HOT 8
- Access snabbdom-to-html modules when using makeHTMLDriver HOT 1
- snabbdom-to-html should be a hard dependency
- Observable of vtrees inside a regular vtree HOT 4
- Silent failures with v1.1 HOT 13
- not receiving blur or focus events HOT 2
- Root element is replaced HOT 5
- Empty hyperscript helpers return undefined HOT 10
- Isolate bug? HOT 41
- can not make cycle-snabbdom runable with xstream HOT 1
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 cycle-snabbdom.