Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Build error on appflow but works in local

$
0
0

@sungwjpark wrote:

My package.json

{
  "name": "mapsit-app",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "e2e:old": "ionic-app-scripts build && protractor",
    "e2e": "start-server-and-test ionic:serve http-get://localhost:8100 cypress:run",
    "cypress": "cypress open",
    "cypress:run": "cypress run"
  },
  "config": {
    "ionic_generate_source_map": "true"
  },
  "dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@chrisben/imgcache.js": "^2.1.0",
    "@ionic-native/camera": "^4.10.0",
    "@ionic-native/core": "~4.10.0",
    "@ionic-native/file": "^4.10.0",
    "@ionic-native/geolocation": "^4.10.0",
    "@ionic-native/in-app-browser": "^4.10.0",
    "@ionic-native/keyboard": "^4.10.0",
    "@ionic-native/launch-navigator": "^4.10.0",
    "@ionic-native/splash-screen": "~4.10.0",
    "@ionic-native/status-bar": "~4.10.0",
    "@ionic/pro": "^2.0.3",
    "angular2-signaturepad": "^2.8.0",
    "animate.css": "^3.7.0",
    "async": "^2.6.0",
    "chart.js": "^2.7.1",
    "cordova-android": "7.1.1",
    "cordova-ios": "4.5.5",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-dialogs": "^2.0.1",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-firebase": "^2.0.5",
    "cordova-plugin-geolocation": "^4.0.1",
    "cordova-plugin-inappbrowser": "^3.0.0",
    "cordova-plugin-ionic": "^5.3.0",
    "cordova-plugin-ionic-keyboard": "git://github.com/ionic-team/cordova-plugin-ionic-keyboard.git",
    "cordova-plugin-ionic-webview": "^4.0.1",
    "cordova-plugin-native-logs": "^1.0.5",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.6.0",
    "countries-list": "^2.4.2",
    "intl": "^1.2.5",
    "ionic-angular": "^3.9.2",
    "ionic-img-viewer": "^2.9.0",
    "ionic2-calendar": "^0.4.4",
    "ionic2-rating": "^1.2.2",
    "ionicons": "3.0.0",
    "localforage": "^1.7.1",
    "localforage-cordovasqlitedriver": "^1.7.0",
    "lodash": "^4.17.11",
    "lodash.clonedeep": "^3.0.2",
    "lodash.omit": "^3.0.2",
    "moment": "^2.22.2",
    "ng2-canvas-whiteboard": "^2.1.2",
    "ng2-charts": "^1.6.0",
    "openlayers": "^4.6.5",
    "raven-js": "^3.27.0",
    "rxjs-compat": "^6.4.0",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.2.2",
    "uuid": "^3.3.2",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.2.3",
    "cypress": "^3.1.3",
    "start-server-and-test": "^1.7.11",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "Geolocation required to provide location updates to your team"
      },
      "cordova-plugin-actionsheet": {},
      "cordova-plugin-native-logs": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-whitelist": {},
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {
        "LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes",
        "OKHTTP_VERSION": "3.+"
      },
      "cordova-plugin-statusbar": {},
      "cordova-plugin-network-information": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-file": {},
      "cordova-plugin-ionic": {
        "APP_ID": "457C1592",
        "CHANNEL_NAME": "Master",
        "UPDATE_METHOD": "none",
        "MAX_STORE": "2",
        "WARN_DEBUG": "true",
        "UPDATE_API": "https://api.ionicjs.com",
        "ROLLBACK_TIMEOUT": "10",
        "MIN_BACKGROUND_DURATION": "30"
      },
      "cordova-plugin-file-transfer": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-firebase": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

Error on dashboard web build,

[05:29:17]: ▸ [05:29:17] copy finished in 4.53 s [05:29:24]: ▸ [05:29:24] ionic-app-script task: "build" [05:29:24]: ▸ [05:29:24] Error: ./node_modules/ng2-canvas-whiteboard/dist/canvas-whiteboard.component.js Module not found: Error: [05:29:24]: ▸ Can't resolve 'lodash.cloneDeep' in '/builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/dist' [05:29:24]: ▸ resolve 'lodash.cloneDeep' in '/builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/dist' Parsed [05:29:24]: ▸ request is a module using description file: [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/package.json (relative path: ./dist) Field [05:29:24]: ▸ 'browser' doesn't contain a valid alias configuration after using description file: [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/package.json (relative path: ./dist) resolve [05:29:24]: ▸ as module looking for modules in /builds/maple-ai/maple-app/node_modules using description file: [05:29:24]: ▸ /builds/maple-ai/maple-app/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a [05:29:24]: ▸ valid alias configuration after using description file: /builds/maple-ai/maple-app/package.json (relative [05:29:24]: ▸ path: ./node_modules) using description file: /builds/maple-ai/maple-app/package.json (relative path: [05:29:24]: ▸ ./node_modules/lodash.cloneDeep) no extension Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep doesn't exist .ts Field 'browser' doesn't contain a [05:29:24]: ▸ valid alias configuration /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.ts doesn't exist .js [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.js doesn't exist .json Field 'browser' doesn't [05:29:24]: ▸ contain a valid alias configuration /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.json doesn't [05:29:24]: ▸ exist as directory /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep doesn't exist [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.ts] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.js] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.json] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep] @ [05:29:24]: ▸ ./node_modules/ng2-canvas-whiteboard/dist/canvas-whiteboard.component.js 11:16-43 @ [05:29:24]: ▸ ./node_modules/ng2-canvas-whiteboard/dist/ng2-canvas-whiteboard.js @ [05:29:24]: ▸ ./node_modules/ng2-canvas-whiteboard/index.js @ ./src/pages/technician/canvas-modal.ts @ [05:29:24]: ▸ ./src/app/app.module.ts @ ./src/app/main.ts [05:29:24]: ▸ Error: ./node_modules/ng2-canvas-whiteboard/dist/canvas-whiteboard.component.js [05:29:24]: ▸ Module not found: Error: Can't resolve 'lodash.cloneDeep' in '/builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/dist' [05:29:24]: ▸ resolve 'lodash.cloneDeep' in '/builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/dist' [05:29:24]: ▸ Parsed request is a module [05:29:24]: ▸ using description file: /builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/package.json (relative path: ./dist) [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ after using description file: /builds/maple-ai/maple-app/node_modules/ng2-canvas-whiteboard/package.json (relative path: ./dist) [05:29:24]: ▸ resolve as module [05:29:24]: ▸ looking for modules in /builds/maple-ai/maple-app/node_modules [05:29:24]: ▸ using description file: /builds/maple-ai/maple-app/package.json (relative path: ./node_modules) [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ after using description file: /builds/maple-ai/maple-app/package.json (relative path: ./node_modules) [05:29:24]: ▸ using description file: /builds/maple-ai/maple-app/package.json (relative path: ./node_modules/lodash.cloneDeep) [05:29:24]: ▸ no extension [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep doesn't exist [05:29:24]: ▸ .ts [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.ts doesn't exist [05:29:24]: ▸ .js [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.js doesn't exist [05:29:24]: ▸ .json [05:29:24]: ▸ Field 'browser' doesn't contain a valid alias configuration [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.json doesn't exist [05:29:24]: ▸ as directory [05:29:24]: ▸ /builds/maple-ai/maple-app/node_modules/lodash.cloneDeep doesn't exist [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.ts] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.js] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep.json] [05:29:24]: ▸ [/builds/maple-ai/maple-app/node_modules/lodash.cloneDeep] [05:29:24]: ▸ @ ./node_modules/ng2-canvas-whiteboard/dist/canvas-whiteboard.component.js 11:16-43 [05:29:24]: ▸ @ ./node_modules/ng2-canvas-whiteboard/dist/ng2-canvas-whiteboard.js [05:29:24]: ▸ @ ./node_modules/ng2-canvas-whiteboard/index.js [05:29:24]: ▸ @ ./src/pages/technician/canvas-modal.ts [05:29:24]: ▸ @ ./src/app/app.module.ts [05:29:24]: ▸ @ ./src/app/main.ts [05:29:24]: ▸ at new BuildError (/builds/maple-ai/maple-app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28) [05:29:24]: ▸ at callback (/builds/maple-ai/maple-app/node_modules/@ionic/app-scripts/dist/webpack.js:121:28) [05:29:24]: ▸ at emitRecords.err (/builds/maple-ai/maple-app/node_modules/webpack/lib/Compiler.js:265:13) [05:29:24]: ▸ at Compiler.emitRecords (/builds/maple-ai/maple-app/node_modules/webpack/lib/Compiler.js:371:38) [05:29:24]: ▸ at emitAssets.err (/builds/maple-ai/maple-app/node_modules/webpack/lib/Compiler.js:258:10) [05:29:24]: ▸ at applyPluginsAsyncSeries1.err (/builds/maple-ai/maple-app/node_modules/webpack/lib/Compiler.js:364:12) [05:29:24]: ▸ at next (/builds/maple-ai/maple-app/node_modules/tapable/lib/Tapable.js:218:11) [05:29:24]: ▸ at Compiler.compiler.plugin (/builds/maple-ai/maple-app/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) [05:29:24]: ▸ at Compiler.applyPluginsAsyncSeries1 (/builds/maple-ai/maple-app/node_modules/tapable/lib/Tapable.js:222:13) [05:29:24]: ▸ at Compiler.afterEmit (/builds/maple-ai/maple-app/node_modules/webpack/lib/Compiler.js:361:9) [05:29:24]: ▸ npm ERR! code ELIFECYCLE [05:29:24]: ▸ npm ERR! errno 1 [05:29:24]: ▸ npm ERR! mapsit-app@0.0.1 build:ionic-app-scripts build[05:29:24]: ▸ npm ERR! Exit status 1 [05:29:24]: ▸ npm ERR! [05:29:24]: ▸ npm ERR! Failed at the mapsit-app@0.0.1 build script. [05:29:24]: ▸ npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [05:29:24]: ▸ npm ERR! A complete log of this run can be found in: [05:29:24]: ▸ npm ERR! /root/.npm/_logs/2019-04-22T05_29_24_294Z-debug.log

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



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