This is because Safari browser does not support regular expression zero assertion in two// formats:<= , ?<!
Solution:
Use constructor instead of// format
let reg = /ab?<=cd/
Change to
let reg = new RegExp('ab(?<=cd)')
Read More:
- vue Error: Uncaught SyntaxError: Invalid shorthand property initializer
- [Solved] Uncaught SyntaxError: Invalid Unicode escape sequence
- [Solved] vue-roter 4 Error: Error: Invalid route component/Uncaught (in promise) Error: Invalid route component
- OTS parsing error: invalid version tag [How to Solve]
- Parsing error:x-invalid-end-tag [How to Solve]
- Vue: initialize failed: invalid DOM [How to Solve]
- Error: input is invalid type [How to Solve]
- [Solved] Invalid prop: type check failed for prop “modelValue“. Expected Number…
- [Solved] Vue echarts Error: Initialize failed: invalid dom.
- How to Solve the error: initialize failed invalid dom
- [Solved] vue run serve Error: ValidationError: Progress Plugin Invalid Options
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- About JS error uncaught syntax error: invalid shorthand property initializer
- [vite] Failed to parse source for import analysis because the content contains invalid JS syntax.
- [Solved] React Dependency Error: Invalid tag name “^np.0.2“ of package “react@^np.0.2“: Tags may not have an
- [Solved] echarts Draw Errror: echarts-d9fd185e.js:31447 Uncaught (in promise) Error: Initialize failed: invalid dom.
- The page console error [Vue warn]: Invalid prop: custom validator check failed for prop “status“
- After installing NPM, NRM LS reports an error throw new err_INVALID_ARG_TYPE(name, ‘string‘, value)
- [Solved] Echarts Error: Uncaught (in promise) Error: Initialize failed: invalid dom.
- [Vue warn]: Invalid prop: custom validator check failed for prop “navigationBarTextStyle“.