Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6364] TI SDK 8.1.1 - sourcemap false in the config.json is causing an error during the compilation

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2019-12-27T15:12:05.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI, Studio, Titanium SDK & CLI
Labelsalloy, android, core, defect, ios, regression
ReporterFrancisco Antonio Duran Ramirez
AssigneeAminul Islam
Created2019-09-11T19:05:03.000+0000
Updated2019-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.

Comments

  1. Rakhi Mitro 2019-10-20

    Hello [~antonioduran], Thanks for sharing with is. Can you please sample test project and test steps to reproduce the issue on our end?
  2. Aminul Islam 2019-12-27

    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?
       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.201909061933
       
    *config.json*
       {
       	"global": {},
       	"env:development": {},
       	"env:test": {},
       	"env:production": {},
       	"os:android": {},
       	"os:ios": {},
       	"os:windows": {},
       	"dependencies": {},
       	"sourcemap": false
       }
       
    Thanks

JSON Source