GithubHelp home page GithubHelp logo

Comments (24)

TylorS avatar TylorS commented on June 11, 2024

@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.

TylorS avatar TylorS commented on June 11, 2024

@kaosat-dev Could you run npm ls and tell me what version of snabbdom-to-html is installed?

from cycle-snabbdom.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

yes : [email protected]

from cycle-snabbdom.

TylorS avatar TylorS commented on June 11, 2024

Could you try explicitly installing [email protected] and reporting back if the error still exists?

from cycle-snabbdom.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

Tried it, error still stays the same

from cycle-snabbdom.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

edit: never mind my bad, even with older snabbdom-to-html versions it still fails

from cycle-snabbdom.

TylorS avatar TylorS commented on June 11, 2024

It's exactly the same error?

Do you mind posting it?

from cycle-snabbdom.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

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.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

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.

TylorS avatar TylorS commented on June 11, 2024

I can only reproduce with snabbdom-to-html 2.1.0

from cycle-snabbdom.

acstll avatar acstll commented on June 11, 2024

@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.

TylorS avatar TylorS commented on June 11, 2024
~/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.

TylorS avatar TylorS commented on June 11, 2024

Thank you @acstll. Let me know if there is anything I can do to help?

from cycle-snabbdom.

acstll avatar acstll commented on June 11, 2024

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.

TylorS avatar TylorS commented on June 11, 2024

👍

from cycle-snabbdom.

TylorS avatar TylorS commented on June 11, 2024

Thank you @acstll

from cycle-snabbdom.

acstll avatar acstll commented on June 11, 2024

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.

TylorS avatar TylorS commented on June 11, 2024

@acstll I'll do some reading 👍

from cycle-snabbdom.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

thanks a lot for the infos @TylorS and @acstll !
Let me know if I can also help with something!

from cycle-snabbdom.

the-simian avatar the-simian commented on June 11, 2024

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.

TylorS avatar TylorS commented on June 11, 2024

This should be fixed with v1.1.0
Please let me know if there are anymore issues.

from cycle-snabbdom.

acstll avatar acstll commented on June 11, 2024

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.

kaosat-dev avatar kaosat-dev commented on June 11, 2024

@TylorS it seems to work ok now, thanks !
Should this get closed or remain open for @acstll updates ?

from cycle-snabbdom.

TylorS avatar TylorS commented on June 11, 2024

I'll close for now. If for any reason anyone needs to reopen or continue discussing, feel free.

from cycle-snabbdom.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.