[AC-6364] TI SDK 8.1.1 - sourcemap false in the config.json is causing an error during the compilation
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-12-27T15:12:05.000+0000 |
| Affected Version/s | Appcelerator Studio 4.5.0 |
| Fix Version/s | n/a |
| Components | Alloy, Appcelerator CLI, Studio, Titanium SDK & CLI |
| Labels | alloy, android, core, defect, ios, regression |
| Reporter | Francisco Antonio Duran Ramirez |
| Assignee | Aminul Islam |
| Created | 2019-09-11T19:05:03.000+0000 |
| Updated | 2019-12-27T15:12:05.000+0000 |
Description
Hello. Good afternoon.
I have a project where in the file of *config.json* file has the property of *sourcemap* with the value of *false*, and it is causing the following error message on the console, but if you modify the value to *true* it will work.
[ERROR] Error: Error: /Users/tony/code/build/map/Resources/iphone/app.js.map: ENOENT: no such file or directory, open '/Users/tony/code/build/map/Resources/iphone/app.js.map'
at /Users/tony/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/appc-tasks/dist/task/IncrementalFileTask.js:118:11
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
config.json
Not working
{
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:ios": {},
"os:windows": {},
"dependencies": {},
"sourcemap": false
}
Working
{
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:ios": {},
"os:windows": {},
"dependencies": {},
"sourcemap": true
}
Note: This is working fine with 8.0.2.GA, also please remove the build folder, and Resources folder before do any test.
Please let me know whether you have any doubt or question.
Thanks, and best,
Francisco Antonio Duran Ramirez.
Hello [~antonioduran], Thanks for sharing with is. Can you please sample test project and test steps to reproduce the issue on our end?
Hello [~antonioduran], We have tested this issue with latest sdk 8.3.0.GA and so far we have been unable to reproduce this error. Can you please try to latest sdk and let us know how it goes?
*config.json*Operating System Name = Microsoft Windows 10 Pro Version = 10.0.10240 Architecture = 64bit # CPUs = 4 Memory = 17091956736 Node.js Node.js Version = 10.18.0 npm Version = 6.13.4 Titanium CLI CLI Version = 5.2.2 Titanium SDK SDK Version = 8.3.0.GA Axway Appcelerator Studio, build: 5.1.4.201909061933Thanks{ "global": {}, "env:development": {}, "env:test": {}, "env:production": {}, "os:android": {}, "os:ios": {}, "os:windows": {}, "dependencies": {}, "sourcemap": false }