Nativescript Extension Uninstall
Tags: Nativescript Extension 2020-09-19 18:59:46
I've had a hell of a time trying to get rid of Typescript. Occasionally in a branch it gets installed and when I switch out to master/prod branch, there are files on .gitignore that maintain the dependency, which gets caught up in my builds and auto-adds typescript to my package. This is a very clean way of uninstalling that typescript package, as it look for an entrypoint typescript file that you might not have in a vanilla Nativescript project.
Just kidding. That didn't solve my typescript issue either. Still need to do a
tns migrate and then edit the
webpack.config.js and change its entrypoint - nope that didnt work either.
Problems are related to TNS binary v6.0 vs your current runtime. The
nativescript-dev-webpack in package.json used v0.10 and now uses 1.4.1 as well as officially automatically adding typescript 3.4.5 to the package.json. I love the problem typescript tries to solve with multiple ECMAscript standards being transpiled into one all-browser-compatible version of your code, but adding complexity to a complex problem makes for a complexity vaccum, which I am not for.
Lol...just rename your
app.js to a .ts file...We'll assume typescript is here to stay and stop fighting it...
Tags:Nativescript Extension 2020-09-19 18:59:46