NLS issues after JS api 3.1 upgrade

381
1
Jump to solution
08-21-2012 12:51 AM
MatejSkerjanc
Occasional Contributor
Getting error in browser : GET http://nls/template.js  init.js:15 this occurs after the init.js has been loaded and ofcourse after the upgrade to 3.1 (from 2.8).

I see no property where i could have change the location of localizations. Hoping some of you found&fixed this already


Cheers
0 Kudos
1 Solution

Accepted Solutions
MatejSkerjanc
Occasional Contributor
After some coding stint i found the culprit being in wrong location argument.


packages:
                [
                    {
                    "name": "esriTemplate",
                    "location": modulePath.replace('/\/[^/]+$/', "") + "/"
       
                ]

the regex was mising ' '

sorry for incovenience

View solution in original post

0 Kudos
1 Reply
MatejSkerjanc
Occasional Contributor
After some coding stint i found the culprit being in wrong location argument.


packages:
                [
                    {
                    "name": "esriTemplate",
                    "location": modulePath.replace('/\/[^/]+$/', "") + "/"
       
                ]

the regex was mising ' '

sorry for incovenience
0 Kudos