codepen console does not always display js errors #144
Replies: 3 comments 5 replies
-
The devtools don't support codepen at the moment, see #143 (comment) for alternatives. This is a community project (that's why this repository is under alpine-collective and not the alpinejs organisation), so even if "alpinejs have enough clout to prompt an improvement", I don't think it's the place of this project to attempt to use that clout. |
Beta Was this translation helpful? Give feedback.
-
Ok. As things stand, a codepen is (one of) the official alpinejs tools (that is, a codepen is nearly universally requested for problem resolution by significant particpants in discord etc) and its console is defective. Correct me if I am wrong here. I will give this a rest and revisit in a couple of days. The codepen console (admittedly outstream) is the only defect in alpinejs that I can see right now. I want to reach a point of closure for an alpinejs diagnostics codepen add-in this week and a codepen system defect cannot be ignored. One way to remediate it is for the diagnostic to unconditionally log something like "Not all alpinejs javascript errors will be reported here. Be sure to use the browser log to see any and all errors." I think I will just do that for closure this week. Thanks. |
Beta Was this translation helpful? Give feedback.
-
We're essentially just a few Alpine nerds that work on these community projects when we're not working at our full time jobs. We don't get paid for this (feel free to sponsor us though!), and nothing we say should be taken as official AT ALL. I can see how that could be confusing though since we talk a lot on the Discord as well as the issues/discussions on the main repo. However, the buck stops with Caleb. Only what he says is canon. For your CodePen frustrations, there's another project that adds "devtool" support to CodePen, which you can find here and a demo on CodePen here. I created that simply because I felt the same frustration you feel now when using CodePen + Alpine. Feel free to use that. OR... you could figure out how to get it working in CodePen and submit a PR :) Everyone is welcome to contribute here. |
Beta Was this translation helpful? Give feedback.
-
I am posting this here since codepen is a kind of development tool and is often used to resolve alpine app coding problems.
Some, but not all, js errors from alpinejs execution are reported (with attribution to alpine) in the codepen console. Should this be reported to codepen? Does alpinejs have enough clout to prompt an improvement? Maybe report this defect along with any other requests like an option to clear the console before every run?
Thanks, Mark
Beta Was this translation helpful? Give feedback.
All reactions