Forum Discussion
Hi Harald,
I guess there is nothing wrong with the typescript file. It just tells us that you use a more up to date Innovator version. In recent versions (I14+) many JS files were converted to TS even they basically do the same. Which version do you use?
I am not sure if the trick from the post (11SP15!!!) still will work in your Innovator version. If the code looks nearly identical there is a good chance it will work. You can edit the TS file in a text editor just the same way you would do with the previous JS.
Angela
We are currently in the process of upgrading to 31, I am doing this in a test base which is already upgraded to Release 31. The typescript code is indeed fine, but editing it won't work as it's not typescript code that runs on the client, but javascript transpiled from it. You probably do other things in your frontend build process too, I see the javascript code ends up in files named things like "chunk-OLLZHG3Z.es.js" which contain non-human readable javascript.
But I can only guess at what happens, because whatever build files you use to do this conversion from typescript to javascript/minification/chunking do not seem to be included in my tree.
I have found a way to avoid using external links, so I don't need to do this particular hack, but is it intentional that we no longer have the ability to change such things?
- AngelaIp10 months agoIdeator I
To be honest, I so far never customized a typescript file, cause I currently don´t have one of these Innovator versions. I just have seen them in test database, but haven´t modified them yet.
I haven´t thought about the compiling aspect yet. But that´s a good point.
Let´s wait a few hours until the Aras Labs team comes back from Thanksgiving :). Or ask Aras support. I am interested in this question too.
- Harald_Korneliussen8 months agoIdeator I
Update: I did ask aras support, and although what they told me wasn't correct - they thought the typescript files would get automatically compiled by the web server - I did figure out how Aras builds its frontend now. It's very easy to build, they just put the build files in the nodejs folder, which is a style of project layout I haven't encountered before (but for all I know, it's common to do it that way).
Just calling the compile.bat file in that folder appears to rebuild the files in jsBundles from the typescript files.
(Although there appears to be other files in that folder which aren't reconstructed if you rename the folder and compile, I would definitively be careful before doing this on a production instance).