We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description of the bug If an error is thrown in a Vue SFC, the line number of the statement that threw the error is incorrect.
To Reproduce Steps to reproduce the behaviour:
<script>
What I expected The line number should match the line number in the user's source code
Code sample
<script> export default { data() { return { message: 'Hello', }; }, methods: { p() { this.message += '!'; }, }, mounted() { function t() { throw new Error('Mock error'); // line 15 } t(); // line 17 console.log(10 < 20); }, }; </script> <template> <view class="container"> <text class="text-color-primary">My Vue Native App</text> <text class="text-color-primary">{{ message }}</text> <button title="Press" @press="p" /> </view> </template> <style> .container { background-color: white; align-items: center; justify-content: center; flex: 1; } .text-color-primary { color: blue; } </style>
Screenshots
Did I use vue-native-cli to create the project? Yes
vue-native-cli
Am I using Expo? Yes, although it also occurs on bare RN based projects
Development platform:
The device on which I run my Vue Native app
The text was updated successfully, but these errors were encountered:
Repo which reproduces issue
https://github.com/RishabhKarnad/vue-native-incorrect-stack-trace-demo
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description of the bug
If an error is thrown in a Vue SFC, the line number of the statement that threw the error is incorrect.
To Reproduce
Steps to reproduce the behaviour:
<script>
part of the SFC and don't handle itWhat I expected
The line number should match the line number in the user's source code
Code sample
Screenshots
Did I use
vue-native-cli
to create the project?Yes
Am I using Expo?
Yes, although it also occurs on bare RN based projects
Development platform:
The device on which I run my Vue Native app
The text was updated successfully, but these errors were encountered: