Closed the-bay-kay closed 9 months ago
Finally found the solution! As Jack and Shankari suggested, the issue was with node_modules/macos-release/index.js
and setup/autoreload/macos-index.js
. The solution was to:
Edit setup/autoreload/macos-index.js
, adding my current MacOS version as follows:
'use strict';
const os = require('os');
const nameMap = new Map([
[23, ['Sonoma', '14.3.1']], // <- Version added
[22, ['Ventura', '13']],
[21, ['Monterey', '12']],
// More versions below
]); // more code below
bash setup/setup_serve.sh
, and source setup/activate_serve.sh
.node_modules/macos-release/index.js
, and add the missing MacOS version, as above. npm start serve
, or continue to building to hardware!
Background
e-mission-phone
The Bug
npm run serve
command fails with the following error:node_modules/macos-release/index.js
. The file contains the following versions, notably lacking Sonoma...const nameMap = new Map([ [22, ['Ventura', '13']], [21, ['Monterey', '12']], [20, ['Big Sur', '11']], // ...
Updating cordova to the latest version (12.0.0) does not fix the build error. This seems to suggest that the issue may be with ionic, or another related dependency. When running
npm ls macos-release
, we receive the following output:As can be seen here, this macos-release is a few versions behind the plugin's current 3.2.0 link.
My thought, then, is to begin updating these plugins, starting with the lowest version, until we find one that will (i) not break our codebase going too far forward, and (2) update the
macos-release
version to an acceptable value.I'm currently being pulled in a few different directions, and won't be able to address this immediately -- the bluetooth integradtion (link) needs to be wrapped up first. My desktop PC is struggling, but I should be able to continue with Android Development while the macos
serve
is broken.That being me to my final thoughts -- if anyone has experience with these version issues, please feel free to add your two cents! Any pointers or advice would be greatly appreciated.