Resolve Exports currently defaults to False #637
Unanswered
Archmonger
asked this question in
Problem
Replies: 1 comment 2 replies
-
For option 3, there should be a client-side log, but that's easy for people to miss. We have an issue that captures this though: #346 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now,
idom.web.module_from_template
'sresolve_exports
currently defaults toFalse
when not inIDOM_DEBUG_MODE
, which can lead to an awkward developer experience. We shouldn't have to rely onIDOM_DEBUG_MODE
to let the user know of something that is confirmable to be a typo.The issue is predominantly that, when in a barebones configuration, the user has no Python logs telling whether something they've has failed to export. Even when attempting to render a failed export, there are no logs/console output given that something has went wrong. We definitely should warn when a module confirmably does not exist within a properly fetched esm.sh package
We should pick one of these suggestions to remediate this
resolve_exports
option. Always resolve exports and log an error upon failed export rather than raising an exception.resolve_exports
toTrue
Opening this as a discussion first so we can talk about whether this should be addressed.
Beta Was this translation helpful? Give feedback.
All reactions