Unable to load Platform API from /Users/RK/Documents/IONIC/ionic/myApp/platforms/ios/cordova/Api.js: Cannot find module 'at-least-node'
making ios build in ionic 3.4
If you are getting the "Cannot find module" error when trying to run a local file, make sure that the path you passed to the node command points to a file that exists. For example, if you run node src/index. js , make sure that the path src/index. js points to an existing file.
The "Cannot find module or its corresponding type declarations" error occurs when TypeScript cannot locate a third-party or local module in our project. To solve the error, make sure to install the module and try setting moduleResolution to node in your tsconfig. json file.
Pretty sure the magic that fixed it for me:
/node_modules
, /platforms
, /plugins
, /package-lock.json
But here are all the things I did (incase it was a different thing that actually fixed it)....
Windows:
Mac:
All are on Cordova 9.0.0 and node 14+.
Received this error when installing plugins usually.
Got the error for building ios and android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With