Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halogen Hooks problems #68

Open
mohaalak opened this issue Jan 5, 2022 · 3 comments
Open

Halogen Hooks problems #68

mohaalak opened this issue Jan 5, 2022 · 3 comments

Comments

@mohaalak
Copy link

mohaalak commented Jan 5, 2022

after running zephyr on this recipe after clicking on plus or minus it will throws an error.

Screen Shot 1400-10-15 at 18 23 37

the problem is inside the halogen free monad hooks, but I could not find the culprit.

@MaybeJustJames
Copy link
Owner

Indeed I can reproduce an error (though not the same one):

index.js:30 Uncaught ReferenceError: compose is not defined
    at Object.parcelRequire.../../../dce-output/Data.Function/index.js (index.js:30)
    at newRequire (web.e31bb0bc.js:47)
    at localRequire (web.e31bb0bc.js:53)
    at Object.parcelRequire.../../../dce-output/Control.Bind/index.js.../Data.Function/index.js (index.js:3)
    at newRequire (web.e31bb0bc.js:47)
    at localRequire (web.e31bb0bc.js:53)
    at Object.parcelRequire.../../../dce-output/ButtonsHalogenHooks.Main/index.js.../Control.Bind/index.js (index.js:3)
    at newRequire (web.e31bb0bc.js:47)
    at localRequire (web.e31bb0bc.js:53)
    at Object.parcelRequire.index.js.../../../dce-output/ButtonsHalogenHooks.Main/index.js (index.js:2)

With what options did you run zephyr?

@MaybeJustJames
Copy link
Owner

After manually cleaning up module.exports from a few DCEd modules I can reproduce your error. In fact, I can narrow it down to Halogen.Hooks.Internal.Eval by copying dce-output/Halogen.Hooks.Internal.Eval/index.js to output/Halogen.Hooks.Internal.Eval/index.js and running parcel on the output/ directory.

@MaybeJustJames
Copy link
Owner

Ok so Halogen.Hooks.Internal.Eval.evalHookM has a call to unsafeGetCell that indexes an empty array after zephyr DCE. Without zephyr DCE the array contains a single element. That's as far as I can get tonight I need to sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants