-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App not working when I run the application after installing the plugin #1576
Comments
The template is there for a reason, it provides useful information. We have no idea about what plugin version, what ionic version, what other plugins you have, what android version, what phone you have, what code you are running, what you have done, what you haven't, how you have installed, what android SDK. |
Thanks for quick reply. please find package.json, config.xml and ionic info for more details: package.json: Config.xml: ionic Info:
global packages:
local packages:
System:
Environment Variables:
Am Using Moto E phone for testing and I Installed the following cordova and npm plugins from terminal: After installation, I added the following import line in app.module.ts and then in providers I added the LocalNotifications. |
I had the same issue and upgrading to typescript 2.4 causes more troubles than it solves. This is not production code, but you can change two bits of code where compilation fails in
And then it should at least compile with older typescript |
I ran into this problem a few minutes ago, if you see the complete error you'll notice that the error is with the Ionic plugin. You just need to downgrade @ionic-native/local-notifications to previous version (4.6.0) and that's all. |
Hello team, Thanks, |
PS D:\PushPOC\PushPOC> ionic cordova run android
Running app-scripts build: --platform android --target cordova
[19:01:01] build dev started ...
[19:01:01] clean started ...
[19:01:01] clean finished in 4 ms
[19:01:01] copy started ...
[19:01:02] deeplinks started ...
[19:01:02] deeplinks finished in 78 ms
[19:01:02] transpile started ...
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 4
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 5
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 6
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 7
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 8
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 9
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 10
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 11
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 12
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 13
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 14
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 84
In ambient enum declarations member initializer must be constant expression.
[19:01:09] typescript: D:/PushPOC/PushPOC/node_modules/@ionic-native/local-notifications/index.d.ts, line: 85
In ambient enum declarations member initializer must be constant expression.
Error: Failed to transpile program
at new BuildError (D:\PushPOC\PushPOC\node_modules@ionic\app-scripts\dist\util\errors.js:16:28)
at D:\PushPOC\PushPOC\node_modules@ionic\app-scripts\dist\transpile.js:159:20
at new Promise ()
at transpileWorker (D:\PushPOC\PushPOC\node_modules@ionic\app-scripts\dist\transpile.js:107:12)
at Object.transpile (D:\PushPOC\PushPOC\node_modules@ionic\app-scripts\dist\transpile.js:64:12)
at D:\PushPOC\PushPOC\node_modules@ionic\app-scripts\dist\build.js:109:82
The text was updated successfully, but these errors were encountered: