Tracing/capturing errors in dynamically defined Vue template #13071
              
                Unanswered
              
          
                  
                    
                      ludwig801
                    
                  
                
                  asked this question in
                Help/Questions
              
            Replies: 0 comments
  
    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.
-
Context
I have a vue component which is built at runtime, with an HTML template provided by my end-user.
As such, the HTML is dynamic and i have no control over the Vue expressions.
Objective
Trace and help the user detect where syntax and runtime errors are found.
Problem
For syntax errors, its pretty easy to warn the user where they are, because they result from compilation.
But, for runtime errors, I cannot obtain a trace of the component/DOM element where any expression error occurs.
The only error I can capture (see below) has the only information I can trust, but this message can change anytime in the future.
Question
Is there any way to obtain more control over where errors are being captured, or where in the template they are being captured, specifically in a production environment where I can't trust the compiled tracing info?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions