JS string.substring is working but Vue log an error
Vue version
3.2.41
Link to minimal reproduction
Steps to reproduce
just run the code , in playground it works , but in actual project on running browser (Brave Browser in my case) it works fine but log error
What is expected?
kick the bug !
What is actually happening?
i have a 12 digit number in my app , i want to show it in 43 digitlines format im using string.substring() , but vue js log an error in every refresh that says substring is not a property of string . error : Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'substring')
exact same error logs when i use string.slice ... in my opinion , vue doesn't know Js basic string methods
System Info
Manjaro/Linux - Brave Browser v1.44.112 - PHP/Laravel 9.28.0
Any additional comments?
thanks for Powerful team of VUE.JS ...
exact same error logs when i use string.slice ... in my opinion , vue doesn't know Js basic string methods
It rather sounds like a browser issue, or an issue with your app, if it works in the playground.
Since Brave ia built on Chromium, i doubt that Brave doesn't know these basic JS APIs