Closed IvanLencina closed 7 years ago
This issue was moved to driftyco/ionic-native#1311
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Ionic version: (check one with "x") [ ] 1.x [x] 2.x
I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
After I installed Insomnia plugin If I run:
$ionic run android --consolelogs --livereload
or$ionic serve --watch
It works well, but when I run:
$ionic build android --prod --release
I have this error:
Expected behavior:
Steps to reproduce:
1 - Installed Insomnia plugin. 2 - Have error like
"build prod failed: Cannot read property 'Plugin' of undefined, resolving symbol Insomnia"
At that time I had all my native plugins imported
from 'ionic-native'
.3 - Deleted 'ionic-native' from packaje.json and replaced with
"@ionic-native/core": "^3.4.4"
4 - npm i 5 - Refactored my imports to the new providers version. Example:import { InAppPurchase } from '@ionic-native/in-app-purchase';
instead importfrom 'ionic-native'
6 - Updated app-scripts in packaje.json to:
"@ionic/app-scripts": "1.1.4"
7 - npm i8 - Continue the same issue. I can not generate the prod build.
Related code:
packaje.json:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):