Giter Club home page Giter Club logo

Comments (8)

CharlesGrimont avatar CharlesGrimont commented on July 30, 2024

Hello !

I would like to know which version of c8osdkangular and angular are you using.
Could you share me your package.json and your tsconfig.json ?

Actually I'm not able to reproduce this issue using the following configuration with ionic-app-script 2.0.1

https://github.com/CharlesGrimont/sample-c8osdkangular

from c8osdk-angular.

JChanut avatar JChanut commented on July 30, 2024

Thx for your response. Here's the package.json. I notice that I doesn't use the last version of angular compiler and ionic script app. I will test the build command with them.

{
  "name": "myProject",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve",
    "test": "karma start ./test-config/karma.conf.js",
    "test-ci": "karma start ./test-config/karma.conf.js --single-run --browsers PhantomJS"
  },
  "dependencies": {
    "@angular/common": "4.0.2",
    "@angular/compiler": "4.0.2",
    "@angular/compiler-cli": "4.0.2",
    "@angular/core": "4.0.2",
    "@angular/forms": "4.0.2",
    "@angular/http": "4.0.2",
    "@angular/platform-browser": "4.0.2",
    "@angular/platform-browser-dynamic": "4.0.2",
    "@ionic-native/core": "3.6.1",
    "@ionic-native/splash-screen": "3.6.1",
    "@ionic-native/status-bar": "3.6.1",
    "@ionic/storage": "2.0.1",
    "@ngx-translate/core": "^7.0.0",
    "@ngx-translate/http-loader": "^0.1.0",
    "c8osdkangular": "2.1.30",
    "ionic-angular": "3.1.1",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "^0.8.10"
  },
  "devDependencies": {
    "@angular/cli": "^1.1.1",
    "@angular/compiler-cli": "^2.3.1",
    "@ionic/app-scripts": "1.3.4",
    "@types/jasmine": "^2.5.52",
    "@types/node": "^6.0.42",
    "angular2-template-loader": "^0.6.2",
    "codelyzer": "~2.0.0-beta.1",
    "html-loader": "^0.4.5",
    "jasmine": "^2.6.0",
    "karma": "^1.7.0",
    "karma-chrome-launcher": "^2.1.1",
    "karma-jasmine": "^1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-phantomjs-launcher": "^1.0.4",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-spec-reporter": "^0.0.31",
    "karma-webpack": "^2.0.3",
    "ts-loader": "^2.1.0",
    "ts-node": "1.2.1",
    "tslint": "^4.3.0",
    "typescript": "~2.2.1"
  },
  "description": "MyApp: An Ionic project",
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "config": {
    "ionic_copy": "./config/copy.config.js",
    "ionic_www_dir": "../DisplayObjects/mobile"
  },
  "cordovaPlatforms": []
}

from c8osdk-angular.

JChanut avatar JChanut commented on July 30, 2024

and here's the ts.config

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules",
    "src/**/*.spec.ts"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}

from c8osdk-angular.

CharlesGrimont avatar CharlesGrimont commented on July 30, 2024

Don't forget to update c8osdkangular to 2.1.35

I'have reproduced your issue using your package.json,

You must update your dependencies, and particularly angular and ionic-app-script

Let me know if this works

from c8osdk-angular.

CharlesGrimont avatar CharlesGrimont commented on July 30, 2024

As there was no response, I consider this issue as closed.

from c8osdk-angular.

markos92i avatar markos92i commented on July 30, 2024

This is still happening in 2.1.43. But also the 2.1.53 has a lot of errors and it is not working with Ionic 3.9.2.

Trying with the following package.json doesnt work either:
{ "name": "Produccion", "author": "IECISA", "description": "Servicios de Producción - RTVE", "private": true, "scripts": { "build": "ionic-app-scripts build", "clean": "ionic-app-scripts clean", "lint": "ionic-app-scripts lint", "ionic:build": "npm run build", "ionic:serve": "npm run serve", "ionic:lint": "npm run lint" }, "dependencies": { "@angular/common": "4.4.4", "@angular/compiler": "4.4.4", "@angular/compiler-cli": "4.4.4", "@angular/core": "4.4.4", "@angular/forms": "4.4.4", "@angular/http": "4.4.4", "@angular/platform-browser": "4.4.4", "@angular/platform-browser-dynamic": "4.4.4", "@ionic-native/core": "4.3.1", "@ionic-native/splash-screen": "4.3.1", "@ionic-native/status-bar": "4.3.1", "@ionic-native/deeplinks": "4.3.1", "@ionic-native/app-availability": "4.3.1", "@ionic-native/in-app-browser": "4.3.1", "@ionic-native/background-mode": "4.3.1", "@ionic/storage": "^2.1.3", "c8osdkangular": "2.1.43", "ionic-angular": "3.8.0", "ionicons": "3.0.0", "moment": "2.18.1", "rxjs": "5.4.3", "sw-toolbox": "3.6.0", "zone.js": "0.8.18" }, "devDependencies": { "@ionic/app-scripts": "3.1.2", "typescript": "2.3.4", "elementtree": "0.1.6" }, "config": { "ionic_copy": "./config/copy.config.js" } }

from c8osdk-angular.

CharlesGrimont avatar CharlesGrimont commented on July 30, 2024

Can you try with "c8osdkangular": "2.1.56" ?

from c8osdk-angular.

markos92i avatar markos92i commented on July 30, 2024

Just tried it with 2.1.58, it works fine using ionic serve, and also ionic cordova build android --release --prod. Only a few tslint warnings about unused imports in the code (¿Could you clean that?), apart from that everything seems to work fine. Thank you.

from c8osdk-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.