Recently, I wanted to incorporate the Network-information plugin into my project but encountered compatibility issues with an older version of Ionic-native. To resolve this, I took the following steps:
npm rm --save ionic native
npm install --save ionic-native@latest
npm update
as the Network-information plugin had been updated to version 2.2.12.
However, after performing these updates, running ionic serve --watch
resulted in a 'ctorParameters.map is not a function' error in the console.
My current Ionic CLI version is: 2.1.14
This is how my package.json looks:
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
//remaining content as it was before
}
Is there any solution or workaround for this issue?
Thank you in advance!
UPDATE:
In an attempt to resolve the issue, I decided to upgrade to rc4: (2.0.0-rc.4 (2016-12-15))
Following the upgrade guide, the console displayed the message:
A recent change occured in ionic-app-scripts.
Please create a new file "main.ts" containing the content of "main.dev.ts", and then delete the deprecated files.
After addressing this, I encountered further errors when running ionic serve --watch
where the app failed to load, and the console output:
GET http://localhost:8100/build/main.css (index):33
GET http://localhost:8100/build/main.js (index):45
GET http://localhost:8100/build/main.js 404 (Not Found)(index):45