Hello,
I have encountered this error when I callionic run android
after updating my angular to Angular 4.
I am using the camera and file-transfer plugins and I am referencing to this project: https://github.com/dtaalbers/ionic-example-app/blob/master/app/src/pages/upload-example/upload-example.html
.
Error:
[14:44:36] Error encountered resolving symbol values statically. Could not resolve @ionic-native/core relative to
C:/Users/XAWN/Documents/GitHub/ntusocial_ionic/ntusocial/node_modules/@ionic-native/transfer/index.d.ts.,
resolving symbol Transfer in
C:/Users/XAWN/Documents/GitHub/ntusocial_ionic/ntusocial/node_modules/@ionic-native/transfer/index.d.ts,
resolving symbol Transfer in
C:/Users/XAWN/Documents/GitHub/ntusocial_ionic/ntusocial/node_modules/@ionic-native/transfer/index.d.ts
[14:44:36] ngc failed
[14:44:36] ionic-app-script task: “build”
[14:44:36] Error: Error
Log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\XAWN\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@4.4.4
3 info using node@v6.9.4
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle ionic-hello-world@~prebuild: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~prebuild: no script for prebuild, continuing
7 info lifecycle ionic-hello-world@~build: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~build: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~build: PATH: C:\Users\XAWN\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\XAWN\Documents\GitHub\ntusocial_ionic\ntusocial\node_modules\.bin;C:\app\client\XAWN\product\12.1.0\client_1;C:\app\client\XAWN\product\12.1.0\client_1\bin;C:\app\XAWN\OraHome_2\bin;C:\app\XAWN\OraHome_1\bin;C:\app\oracle_db\product\12.1.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Dwimperl\perl\bin;C:\Dwimperl\perl\site\bin;C:\Dwimperl\c\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\XAWN\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\XAWN\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\XAWN\AppData\Local\Programs\Python\Python36-32\;C:\Users\XAWN\Anaconda3;C:\Users\XAWN\Anaconda3\Scripts;C:\Users\XAWN\Anaconda3\Library\bin;C:\Users\XAWN\Anaconda2;C:\Users\XAWN\Anaconda2\Scripts;C:\Users\XAWN\Anaconda2\Library\bin;C:\Users\XAWN\AppData\Local\Microsoft\WindowsApps;C:\Users\XAWN\AppData\Roaming\npm;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Program Files\Java\jdk1.8.0_121\
10 verbose lifecycle ionic-hello-world@~build: CWD: C:\Users\XAWN\Documents\GitHub\ntusocial_ionic\ntusocial
11 silly lifecycle ionic-hello-world@~build: Args: [ '/d /s /c', 'ionic-app-scripts build' ]
12 silly lifecycle ionic-hello-world@~build: Returned: code: 1 signal: null
13 info lifecycle ionic-hello-world@~build: Failed to exec build script
14 verbose stack Error: ionic-hello-world@ build: `ionic-app-scripts build`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Users\XAWN\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Users\XAWN\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd C:\Users\XAWN\Documents\GitHub\ntusocial_ionic\ntusocial
17 verbose Windows_NT 10.0.14393
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\XAWN\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
19 verbose node v6.9.4
20 verbose npm v4.4.4
21 error code ELIFECYCLE
22 error errno 1
23 error ionic-hello-world@ build: `ionic-app-scripts build`
23 error Exit status 1
24 error Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the ionic-hello-world package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error ionic-app-scripts build
24 error You can get information on how to open an issue for this project with:
24 error npm bugs ionic-hello-world
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls ionic-hello-world
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]
ionic info
ordova CLI: 6.5.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.4
Xcode version: Not installed
I tried Googling for solutions but I am still unable to solve it.