Error encountered resolving symbol values statically - Could not resolve @ionic-native/native-storage

I was trying to build an APK for my app using ionic cordova build android --prod --release but I’m getting the following error logs:


Error: Error encountered resolving symbol values statically. Could not resolve @ionic-native/native-storage relative to C:/Users/Sidharthramanan/Documents/Sublime Text 3/AppProject/DonateNow/src/app/app.module.ts., resolving symbol AppModule in C:/Users/Sidharthramanan/Documents/Sublime Text 3/AppProject/DonateNow/src/app/app.module.ts, resolving symbol AppModule in C:/Users/Sidharthramanan/Documents/Sublime Text 3/AppProject/DonateNow/src/app/app.module.ts
    at syntaxError (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:1550:34)
    at simplifyInContext (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23870:23)
    at StaticReflector.simplify (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23882:13)
    at StaticReflector.annotations (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23331:41)
    at NgModuleResolver.resolve (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:13883:70)
    at CompileMetadataResolver.getNgModuleMetadata (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:14473:60)
    at addNgModule (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23050:58)
    at C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23061:14
    at Array.forEach (<anonymous>)
    at _createNgModules (C:\Users\Sidharthramanan\Documents\Sublime Text 3\AppProject\DonateNow\node_modules\@angular\compiler\bundles\compiler.umd.js:23060:26)

I tried uninstalling nativestorage using the following commands, but that doesn’t fix the issue


ionic cordova plugin rm cordova-plugin-nativestorage
npm uninstall --save @ionic-native/native-storage

What’s causing the issue? nativestorage shouldn’t even be registered anywhere on my project now…

Anyone? Please help?

import native-storage in app.module.ts and in app.component.ts

Don’t forget run npm install