I am working on an Angular 17 + Tauri application, and I encountered the following error when running the app on macOS 10.15.7 or lower:
SyntaxError: Unexpected token '=' promiseReactionJob
Observations:
- The app works perfectly on macOS versions newer than 10.15.7.
- The error occurs specifically on macOS 10.15.7 and lower.
- Removing the following browserslist section from package.json does not affect the issue—I still get the same error regardless of the macOS version:
"browserslist": [
"> 0.5%",
"last 2 versions",
"Firefox ESR",
"not dead",
"not IE 11",
"not kaios 2.5",
"not op_mini all"
]
What I Have Tried:
- Removing browserslist from package.json → no change.
- Checking Tauri and Angular compatibility for older macOS versions.
- Ensuring that the Angular app is compiled properly before bundling with Tauri.
Questions:
- Why does this error occur specifically on macOS 10.15.7 and lower?
- Could this be related to the system's WebView version not supporting some modern JavaScript syntax?
- How can I make the Angular + Tauri app work on older macOS versions without errors?
Any help would be greatly appreciated!