Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70445 articles
Browse latest View live

Error Build in dashboard is make me crazy

$
0
0

@vianarock wrote:

Hello guys, I sent my app ionic v3 for dashboard, but its never build.
its the same error…
In my desktop build 100%, only dashboard does this error.
Somebody saaaave me…
lkkkk

[18:49:39] typescript: src/app/app.module.ts, line: 13
Cannot find module ‘…/providers/torneio/torneio’.

don’t find the modules …

Posts: 2

Participants: 2

Read full topic


Cordova_not_available & JWT auth guard (ionViewCanEnter)

$
0
0

@tilmido wrote:

**hello **
**i have problem i use diagnostic native plugin in my app to check if GPS is enabled the problem is **
i get this error cordova_not_available
image
image

my second problem is when i implement ionViewCanEnter it show the login page if i login

Posts: 1

Participants: 1

Read full topic

Error: listen EADDRINUSE 0.0.0.0:53703 - Serve to the browser (ionic serve)

$
0
0

@codiqa10004205 wrote:

Launching for serve (This may take a while)...
Starting Ionic dev server (live reload: true)
[WARN] The --nobrowser option has been deprecated. Please use --no-open.
Starting app-scripts server: --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[21:19:20]  watch started ...
[21:19:20]  build dev started ...
The Ionic live reload server exited unexpectedly
Error in the Ionic live reload server:
Error: listen EADDRINUSE 0.0.0.0:53703

launch.json

{
            "name": "Serve to the browser (ionic serve)",
            "type": "cordova",
            "request": "launch",
            "platform": "serve",
            "cwd": "${workspaceRoot}/src",
            "devServerAddress": "localhost",
            "sourceMaps": true,
            "ionicLiveReload": true,
            "devServerTimeout": 1200000
        },

ionic info

cli packages: (C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0 windows 5.0.0
    Ionic Framework    : ionic-angular 3.4.2

System:

    Android SDK Tools : 26.1.1
    Node              : v6.11.4
    npm               : 3.10.10
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\2bher\AppData\Local\Android\sdk

Misc:

    backend : pro

Each time comes back and I need to restart my pc to debug typescript.

Also tried

taskkill /im chrome.exe /f
adb kill-server
adb start-server
adb devices

None of that worked also.

Any ideas?

Posts: 1

Participants: 1

Read full topic

Offline calling with ionic

$
0
0

@mankota wrote:

I have an ionic 3 app that I created for video conferencing. The problem is if the other party is not online, I can call him. I want to be able to do offline calls wherein if the other party is not online, I can call him and his app will open and display the call just like skype or whatsapp. Can ionic able to do that and if so can someone send me a sample code? If not, what is the workaround?

Thanks in advance

Posts: 1

Participants: 1

Read full topic

Can't run with livereload

$
0
0

@rafbgarcia wrote:

I’m trying to run my project with -c flag, but whenever I do that it breaks saying that a plugin is missing, whereas if I run without the -c flag it successfully loads the app.

Already tried to reinstall plugins and ios platform, but doesn’t work.

This is the error I’m getting:

[17:59:22]  console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
            mode.
[17:59:22]  console.warn: Native: tried calling native-ringtones.playRingtone, but the native-ringtones plugin is not
            installed.
[17:59:22]  console.warn: Install the native-ringtones plugin: 'ionic cordova plugin add
            cordova-plugin-native-ringtones'
[17:59:22]  console.warn: Native: tried calling native-ringtones.getRingtone, but the native-ringtones plugin is not
            installed.
[17:59:22]  console.warn: Install the native-ringtones plugin: 'ionic cordova plugin add
            cordova-plugin-native-ringtones'
[17:59:22]  console.log: Ionic Native: deviceready event fired after 2151 ms
[17:59:22]  console.warn: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
[17:59:22]  console.warn: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'

Posts: 2

Participants: 1

Read full topic

Geolocation issue

$
0
0

@peterbarone wrote:

Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.0
Angular Core: 5.0.0
Angular Compiler CLI: 5.0.0
Node: 6.11.4
OS Platform: macOS Sierra

I have app I’m testing and everything is working as planned on my local machine. When I test the app on my iPhone with Ionic View the geolocation is not working. The part I found odd is that it is not asking permission for location nor does the app ( ionic view ) show on my privacy list so I can allow it. Has anyone else had an issue like this? Any idea on how to solve?

Posts: 2

Participants: 1

Read full topic

Angularfire5 config

$
0
0

@ProjetPOS wrote:

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule, ModuleWithProviders } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';

import * as firebase from 'firebase/app';
import 'firebase/database';
import 'firebase/auth';
//import { firebaseClient } from './variables/firebaseClient';
import { firebaseGlobal } from './variables/firebaseGlobal';

import { AngularFireModule } from 'angularfire2';
import { AngularFirestoreModule } from 'angularfire2/firestore';

import { MyApp } from './app.component';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

/**************/

export const firebaseClient = {
  apiKey: "",
  authDomain: "",
  databaseURL: "",
  projectId: "",
  storageBucket: "",
  messagingSenderId: ""
}
export function initializeFirebaseClient(): ModuleWithProviders {
  firebase.initializeApp(firebaseGlobal);
  firebase.auth().onAuthStateChanged((userClient) => {
    if (!userClient) {
      console.log('auth Global false');
      const ref_promise = firebase.database().ref(`userProfile/fhwPjjC7ugwRtY2wrwtoFcCkyew1`).once('value');
      ref_promise.then(snap => {
        let result = snap.val();
        for (let k in result) {
          firebaseClient[k] = result[k];
        }
        console.log(firebaseClient);
      });
    }
    else {
      console.log('auth Global true');
      const ref_promise = firebase.database().ref(`userProfile/fhwPjjC7ugwRtY2wrwtoFcCkyew1`).once('value');
      ref_promise.then(snap => {
        let result = snap.val();
        for (let k in result) {
          firebaseClient[k] = result[k];
        }
        console.log(firebaseClient);
      });
    }
  })
  return AngularFireModule.initializeApp(firebaseClient, 'firebaseClient');
};

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    BrowserModule,
    initializeFirebaseClient(),
    //AngularFireModule.initializeApp(firebaseClient, 'firebaseClient'),
    //AngularFirestoreModule.enablePersistence(),
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    StatusBar,
    SplashScreen,
    { provide: ErrorHandler, useClass: IonicErrorHandler }
  ]
})
export class AppModule { }

hi,
i try to config angularfire for custom config, but : return AngularFireModule.initializeApp(firebaseClient, ‘firebaseClient’);
is done before i have firebaseClient

can you help me please

thanks you

Patrick

Posts: 1

Participants: 1

Read full topic

Ionic pro build error

$
0
0

@oalexgg wrote:

Hi! i’m having this error every time i try to build my app in Ionic pro, i did changed only an URL when i pushed my app and suddenly it stopped working, someone knows why or the fix? Thanks!

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on Prod Snapshot Builds 1 (c9648220)
Using Shell executor...
Running on ip-10-2-39-0...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'...
Checking out 48b54684 as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install
npm WARN deprecated cordova-plugin-console@1.1.0: This plugin has been deprecated since it is now included in the latest versions of cordova-ios

> node-sass@4.5.3 install /usr/src/app/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.5.3/linux-x64-57_binding.node

> uglifyjs-webpack-plugin@0.4.6 postinstall /usr/src/app/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js


> node-sass@4.5.3 postinstall /usr/src/app/node_modules/node-sass
> node scripts/build.js

Binary found at /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
npm WARN @ionic-native/splash-screen@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none was installed.
npm WARN @ionic-native/status-bar@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none was installed.
npm WARN The package @ionic/app-scripts is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 871 packages in 33.204s
npm install succeeded
Running: npm run build
npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm info lifecycle QuickApp@0.0.1~prebuild: QuickApp@0.0.1
npm info lifecycle QuickApp@0.0.1~build: QuickApp@0.0.1

> QuickApp@0.0.1 build /usr/src/app
> ionic-app-scripts build

[20:10:40]  ionic-app-scripts 3.1.0
[20:10:40]  build dev started ...
[20:10:40]  clean started ...
[20:10:40]  clean finished in 1 ms
[20:10:40]  copy started ...
[20:10:40]  deeplinks started ...
[20:10:40]  deeplinks finished in 219 ms
[20:10:40]  transpile started ...
[20:10:44]  transpile finished in 3.75 s
[20:10:44]  preprocess started ...
[20:10:44]  preprocess finished in less than 1 ms
[20:10:44]  webpack started ...
[20:10:44]  copy finished in 4.20 s
[20:10:51]  ionic-app-script task: "build"
[20:10:51]  Error: ./src/pages/shopping-list/shopping-list.ts Module parse failed: Unexpected token (278:1099) You may
            need an appropriate loader to handle this file type. | ShoppingListPage = __decorate([ | Component({ |
            selector:
            'page-shopping-list',template:/*ion-inline-start:"/usr/src/app/src/pages/shopping-list/shopping-list.html"*/`\n\n\n \n \n \n \n ShoppingList\n
            \n\n\n\n\n\n
{{list.lenght}}

\n
\n
you have nothing to show in your shopping list!

\n
\n \n \n \n \n \n \n \n

{{item.title}}
\n
${{item.price}}

\n
{{item.qtty}} articles

\n \n
            \n \n
            \n View\n \n \n \n Delete\n \n \n
            \n \n \n
\n
            \n
Total:
\n
${{total}}
\n \n
\n continue shopping\n Checkout\n\n
\n\n

\n\n\n\n\n`/*ion-inline-end:"/usr/src/app/src/pages/shopping-list/shopping-list.html"*/,
            | }), | __metadata("design:paramtypes", [NavController, NavParams, ShoppingListModel, @
            ./src/app/app.module.ts 23:0-72 @ ./src/app/main.ts,./src/pages/history/history.ts Module parse failed:
            Unexpected token (58:1441) You may need an appropriate loader to handle this file type. | HistoryPage =
            __decorate([ | Component({ | selector:
            'page-history',template:/*ion-inline-start:"/usr/src/app/src/pages/history/history.html"*/`\n\n\n \n \n
            \n \n History\n
            \n\n\n\n\n\n \n \n \n History\n \n \n
\n \n \n \n \n
            Date:\n \n {{dates[i]}}\n \n \n \n Store:\n
            \n {{purchase.store}}\n \n \n \n Total:\n
            \n ${{purchase.total}}\n \n \n \n \n
            \n
\n \n \n
\n
You have nothing
            to show in your history

\n

\n\n`/*ion-inline-end:"/usr/src/app/src/pages/history/history.html"*/, | }), |
            __metadata("design:paramtypes", [NavController, NavParams, PurchaseProvider, Storage]) @
            ./src/app/app.module.ts 24:0-55 @ ./src/app/main.ts,./src/pages/price-check/price-check.ts Module parse
            failed: Unexpected token (86:755) You may need an appropriate loader to handle this file type. |
            PriceCheckPage = __decorate([ | Component({ | selector:
            'page-price-check',template:/*ion-inline-start:"/usr/src/app/src/pages/price-check/price-check.html"*/`\n\n\n \n Price Check\n
            \n\n\n\n\n\n \n \n \n {{product.title}}\n \n
\n {{product.desc}}\n

\n

${{product.price}}
\n
Quantity:

\n
\n \n
\n {{qtty}}\n

\n \n
\n Add to Shop List\n \n\n \n\n`/*ion-inline-end:"/usr/src/app/src/pages/price-check/price-check.html"*/, | }), |
            __metadata("design:paramtypes", [NavController, NavParams, ShoppingListModel, Events, FavoritesProvider]) @
            ./src/app/app.module.ts 22:0-66 @ ./src/app/main.ts
Error: ./src/pages/shopping-list/shopping-list.ts
Module parse failed: Unexpected token (278:1099)
You may need an appropriate loader to handle this file type.
| ShoppingListPage = __decorate([
|     Component({
|         selector: 'page-shopping-list',template:/*ion-inline-start:"/usr/src/app/src/pages/shopping-list/shopping-list.html"*/`\n\n\n  \n    \n      \n    \n    ShoppingList\n  \n\n\n\n\n\n
{{list.lenght}}

\n
\n
you have nothing to show in your shopping list!

\n
\n  \n    \n      \n        \n          \n            \n          \n
{{item.title}}
\n
${{item.price}}

\n
{{item.qtty}} articles

\n        \n        \n          \n            \n            View\n          \n          \n            \n            Delete\n          \n        \n      \n    \n  \n
\n    \n
Total:
\n
${{total}}
\n    \n
\n      continue shopping\n      Checkout\n\n
\n\n
\n\n\n\n\n`/*ion-inline-end:"/usr/src/app/src/pages/shopping-list/shopping-list.html"*/,
|     }),
|     __metadata("design:paramtypes", [NavController, NavParams, ShoppingListModel,
 @ ./src/app/app.module.ts 23:0-72
 @ ./src/app/main.ts,./src/pages/history/history.ts
Module parse failed: Unexpected token (58:1441)
You may need an appropriate loader to handle this file type.
| HistoryPage = __decorate([
|     Component({
|         selector: 'page-history',template:/*ion-inline-start:"/usr/src/app/src/pages/history/history.html"*/`\n\n\n  \n    \n      \n    \n    History\n  \n\n\n\n\n\n  \n    \n        \n          History\n          \n        \n
\n          \n            \n              \n                \n                  Date:\n                  \n                    {{dates[i]}}\n                  \n                \n                \n                  Store:\n                  \n                    {{purchase.store}}\n                  \n                \n                \n                  Total:\n                  \n                    ${{purchase.total}}\n                  \n                \n              \n            \n          \n
\n    \n  \n
\n
You have nothing to show in your history

\n
\n\n`/*ion-inline-end:"/usr/src/app/src/pages/history/history.html"*/,
|     }),
|     __metadata("design:paramtypes", [NavController, NavParams, PurchaseProvider, Storage])
 @ ./src/app/app.module.ts 24:0-55
 @ ./src/app/main.ts,./src/pages/price-check/price-check.ts
Module parse failed: Unexpected token (86:755)
You may need an appropriate loader to handle this file type.
| PriceCheckPage = __decorate([
|     Component({
|         selector: 'page-price-check',template:/*ion-inline-start:"/usr/src/app/src/pages/price-check/price-check.html"*/`\n\n\n  \n    Price Check\n  \n\n\n\n\n\n    \n      \n        \n          {{product.title}}\n        \n
\n          {{product.desc}}\n

\n
${{product.price}}
\n
Quantity:

\n
\n          \n
\n            {{qtty}}\n

\n          \n
\n        Add to Shop List\n        \n\n        \n\n`/*ion-inline-end:"/usr/src/app/src/pages/price-check/price-check.html"*/,
|     }),
|     __metadata("design:paramtypes", [NavController, NavParams, ShoppingListModel, Events, FavoritesProvider])
 @ ./src/app/app.module.ts 22:0-66
 @ ./src/app/main.ts
    at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at callback (/usr/src/app/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
    at emitRecords.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:269:13)
    at Compiler.emitRecords (/usr/src/app/node_modules/webpack/lib/Compiler.js:375:38)
    at emitAssets.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:262:10)
    at applyPluginsAsyncSeries1.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:368:12)
    at next (/usr/src/app/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/usr/src/app/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
    at Compiler.applyPluginsAsyncSeries1 (/usr/src/app/node_modules/tapable/lib/Tapable.js:222:13)
    at Compiler.afterEmit (/usr/src/app/node_modules/webpack/lib/Compiler.js:365:9)
npm info lifecycle QuickApp@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! QuickApp@0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the QuickApp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitlab-runner/.npm/_logs/2017-11-10T20_10_51_798Z-debug.log
npm run build failed
Make sure your project has a build script in the package.json
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1

Posts: 4

Participants: 2

Read full topic


localStorage .getItem not working not detect

$
0
0

@MarinoRaul wrote:

cli packages: (/node_modules)

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.1

System:

Android SDK Tools : 26.1.1
Node              : v8.6.0
npm               : 4.6.1
OS                : Linux 4.4

Environment Variables:

ANDROID_HOME : /home/marinoraul/Downloads/

Misc:

backend : pro

with all upgraged, localStorage from lib.6 not detect getItem, setItem functions!!!

ANy ideas???

Posts: 1

Participants: 1

Read full topic

Build error on Dashboard - Cannot find Cordova Camera Module

$
0
0

@guithomas wrote:

I have already read and tried the opened topic about the subject, but none of them solved my problem, so let me explain for you.
I am using the Cordova Camera Module, it works properly on real devices and there´s no error on browser testing, BUT, when dashboard presents error on the build part when i try to push my code to dashboard. Here´s the LOG

Using Shell executor...
Running on ip-10-2-39-0...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/2/project-1'...
Checking out 25c1ff08 as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys

> node-sass@4.5.3 install /usr/src/app/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.5.3/linux-x64-57_binding.node

> uglifyjs-webpack-plugin@0.4.6 postinstall /usr/src/app/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js


> node-sass@4.5.3 postinstall /usr/src/app/node_modules/node-sass
> node scripts/build.js

Binary found at /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
npm WARN ionic-angular@3.8.0 requires a peer of @angular/common@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/compiler@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/compiler-cli@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/core@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/forms@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/http@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/platform-browser@4.4.4 but none was installed.
npm WARN ionic-angular@3.8.0 requires a peer of @angular/platform-browser-dynamic@4.4.4 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 756 packages in 63.761s
npm install succeeded
Running: npm run build
npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm info lifecycle fisioterapia@0.0.1~prebuild: fisioterapia@0.0.1
npm info lifecycle fisioterapia@0.0.1~build: fisioterapia@0.0.1

> fisioterapia@0.0.1 build /usr/src/app
> ionic-app-scripts build

[20:16:46]  ionic-app-scripts 3.0.1
[20:16:46]  build dev started ...
[20:16:46]  clean started ...
[20:16:46]  clean finished in 2 ms
[20:16:46]  copy started ...
[20:16:46]  deeplinks started ...
[20:16:46]  deeplinks finished in 80 ms
[20:16:46]  transpile started ...
[20:16:54]  typescript: src/app/app.module.ts, line: 14
            Cannot find module '@ionic-native/camera'.

      L13:  import { MetodoTresPage } from '../pages/metodo-tres/metodo-tres';
      L14:  import { Camera } from '@ionic-native/camera';

[20:16:54]  typescript: src/pages/fpi/fpi.ts, line: 3
            Cannot find module '@ionic-native/camera'.

       L2:  import { NavController, NavParams } from 'ionic-angular';
       L3:  import { Camera, CameraOptions} from '@ionic-native/camera';

[20:16:54]  ionic-app-script task: "build"
[20:16:54]  Error: Failed to transpile program
Error: Failed to transpile program
    at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
    at Promise ()
    at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
    at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
    at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:106:82
    at
npm info lifecycle fisioterapia@0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fisioterapia@0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fisioterapia@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitlab-runner/.npm/_logs/2017-11-10T20_16_54_999Z-debug.log
npm run build failed
Make sure your project has a build script in the package.json
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1

Addional information: Here´s what returned what i ran npm install --save @ionic-native/camera

+-- UNMET DEPENDENCY @angular/core@4.4.3
+-- @ionic-native/camera@4.4.0
+-- UNMET DEPENDENCY @ionic-native/core@4.3.2
`-- UNMET DEPENDENCY rxjs@5.4.3

npm WARN @ionic-native/camera@4.4.0 requires a peer of @ionic-native/core@^4.2.0 but none was installe
npm WARN @ionic-native/camera@4.4.0 requires a peer of @angular/core@* but none was installed.
npm WARN @ionic-native/camera@4.4.0 requires a peer of rxjs@^5.0.1 but none was installed.

Posts: 1

Participants: 1

Read full topic

Problem with native

$
0
0

@samantaayan16 wrote:

when i am creating my app ,it did not work properly and in console

(index):15 The key “viewport-fit” is not recognized and ignored.
core.js:3562 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
util.js:60 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
util.js:60 Native: tried calling SplashScreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
cordovaWarn @ util.js:60

is shown.
help me please.

Posts: 2

Participants: 2

Read full topic

Only title showing in Onesignal notification

$
0
0

@obinnae wrote:

Hello,
I have an Ionic v3 app using Firebase and Onesignal for notifications, and when the FB database gets updated, it sends a notification (using Cloud Functions) to the device via OneSignal, but only the title shows, not the body. By the way, it’s on an Android 7.1.1 emulator (as well as a Nexus 6 phone).

Here’s a sample payload sent to the device …

data:{
        title: 'The title',
        body: 'The content goes here'
        }

The notification only shows “The title”, not “The content goes here”. I replaced “body” with “message”, still no luck. Any ideas?

Also, handleNotificationReceived() doesn’t seem to fire when a notification is received. I have it set up in app.component.ts.

Thanks.45 PM

Posts: 1

Participants: 1

Read full topic

Viewport-fit problem

$
0
0

@developer_med wrote:

hi guys after deploying to my android device i got this error
The key “viewport-fit” is not recognized and ignored.

c55f6c495683f05a6a8d0b05e3d5eb61b4b5bb06_1_690x114

and i have this meta in my index.html this line in generated auto.
‹ meta name=“viewport” content=“viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no” ›

plz give me a solution

Posts: 1

Participants: 1

Read full topic

Global Variables [Change Value]

$
0
0

@Intense wrote:

So basically I have a variable that is called “Profile Picture” that is a url that is defined when the app starts.

And I want to change that variable to a new value when a person logs in.

So I want to use that variable in the img src and then when I update the variable it updates the picture

Posts: 1

Participants: 1

Read full topic

Ionic Cordova splash screen not hiding in Android

$
0
0

@yfarooq wrote:

I have a simple application which works fine in browser and iOS, however for some reason in Android device and emulator they application stuck in the splash screen and do nothing. No error in the console log. however, in chrome inspector in chrome inspect I can see the application. already looked into google and couldn’t find any helpful information.

Already removed and added splash screen plugin.

I am ready to release the but only this one bug is holding me and I am running out of time. Please help

Posts: 1

Participants: 1

Read full topic


How to setup fireadmin into the remote server

$
0
0

@flycoders_sourav wrote:

i have a Firebase FireAdmin backedn.I have purchased from Here.now i want to setup into the live server.how can i do that please anyone guide me.please

Posts: 1

Participants: 1

Read full topic

Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png

$
0
0

@developer_med wrote:

Hi guys, when runing app on my android 4.4.4 i got this msg error on chrome:inspect

cli packages:
@ionic/cli-utils : 1.17.0
ionic (Ionic CLI) : 3.17.0

global packages:
cordova (Cordova CLI) : 6.5.0
local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms : android 6.1.2
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 25.2.5
Node : v6.10.2
npm : 5.5.1

Posts: 1

Participants: 1

Read full topic

How to connect wifi in ionic 3?

Ionic add platform error

Get current location in ionic 2 problem

$
0
0

@HAmer wrote:

I’m trying to use getCurrentPosition function from geolocation plugin to get my current location but it return error this is the code

this.geolocation.getCurrentPosition().then((position) => {

  let latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);

  let mapOptions = {
    center: latLng,
    zoom: 15,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);

  let marker = new google.maps.Marker({
    map: this.map,
    animation: google.maps.Animation.DROP,
    position: this.map.getCenter()
  });

}, (err) => {
   console.log(err);
});

Can anyone tell me why?

Posts: 1

Participants: 1

Read full topic

Viewing all 70445 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>