{"id":509,"date":"2017-05-09T01:53:36","date_gmt":"2017-05-09T01:53:36","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=509"},"modified":"2017-05-15T18:36:43","modified_gmt":"2017-05-15T18:36:43","slug":"nativescript-downgrading-to-2-5","status":"publish","type":"post","link":"http:\/\/fluentreports.com\/blog\/?p=509","title":{"rendered":"NativeScript: Downgrading to 2.5"},"content":{"rendered":"<p>If you are needing to use a plugin that hasn't been upgraded to support 3.0 you basically have three choices, and guess what I can help with each of them...<\/p>\n<ol>\n<li><strong>Wait for it to be updated;<\/strong> you can check my site <a href=\"http:\/\/plugins.nativescript.rocks\">http:\/\/plugins.nativescript.rocks<\/a>; then select the \"3.0\" plugins list, now you can easily see when a plugin has 3.0 compatibility.<\/li>\n<li><strong>Update it your self;<\/strong> or since I'm a contractor; you pay me; I will upgrade the plugin for you.<\/li>\n<li><strong>Downgrade to NativeScript 2.5<\/strong>; I suspect most of you are the most interested in this since you are here...<\/li>\n<\/ol>\n<p>The good news is that several of the 3.0 parts are backwards compatible.\u00a0 You can be running the 3.0 NativeScript command line and build 2.5 apps.\u00a0 You can also be using the 3.0 release runtimes with the core 2.5. modules.\u00a0 So here is the way to downgrade a 3.0 app into a 2.5 app.<\/p>\n<p>&nbsp;<\/p>\n<h4>To downgrade PAN (Plain Awesome NativeScript) apps:<\/h4>\n<p><pre><code>npm install tns-core-modules@2.5.2 --save\nnpm remove nativescript-dev-android-snapshot --save-dev\ntns platform clean ios\ntns platform clean android<\/code><\/pre><\/p>\n<h4>If you are using TypeScript in your apps you need to do:<\/h4>\n<p><code>npm install typescript@2.1.6 --save-dev<\/code><br \/>\n<code>npm install nativescript-dev-typescript@0.3.7 --save-dev<\/code><\/p>\n<h4>To Downgrade NAN (NativeScript ANgular) apps:<\/h4>\n<p><pre><code>npm install --save @angular\/animations@~4.0.0\nnpm install --save @angular\/common@~4.0.0\nnpm install --save @angular\/compiler@~4.0.0\nnpm install --save @angular\/core@~4.0.0\nnpm install --save @angular\/forms@~4.0.0\nnpm install --save @angular\/http@~4.0.0\nnpm install --save @angular\/platform-browser@~4.0.0\nnpm install --save @angular\/platform-browser-dynamic@~4.0.0\nnpm install --save @angular\/router@~4.0.0\nnpm install --save nativescript-angular@~1.5.0\nnpm install --save reflect-metadata@^0.1.8\nnpm install --save rxjs@~5.2.0\nnpm install --save zone.js@~0.8.4\nnpm install --save tns-core-modules@2.5.2<\/code><\/pre><\/p>\n<p><pre><code>npm install --save-dev @angular\/compiler-cli@~4.0.0\nnpm install --save-dev babel-traverse@6.15.0\nnpm install --save-dev babel-types@6.15.0\nnpm install --save-dev babylon@6.11.2\nnpm install --save-dev htmlparser2@^3.9.2\nnpm install --save-dev Lazy@1.0.11\nnpm install --save-dev typescript@2.1.6\nnpm install --save-dev nativescript-dev-typescript@0.3.7\nnpm remove --save-dev nativescript-dev-android-snapshot<\/code><\/pre><\/p>\n<p>tns platform clean ios<br \/>\ntns platform clean android<\/p>\n<hr \/>\n<p>One note that seems to confuse some people; you can continue to use the NativeScript 3.0 CLI with NativeScript 2.5 applications.\u00a0 You can also use the 3.0 Runtimes (highly recommended actually) with your 2.5 Core modules applications.<\/p>\n<p>Any of my 2.5 applications are now (This setup is fully 2.5 plugin compatible):<br \/>\n- 3.0 CLI<br \/>\n- 3.0 Runtimes<br \/>\n- 2.5 TNS Core Modules (if NAN, then you need the old Angular stuff as listed above)<\/p>\n<p>And my 3.0 applications are (This is the standard 3.0 setup)<br \/>\n- 3.0 CLI<br \/>\n- 3.0 Runtimes<br \/>\n- 3.0 TNS Core Modules\u00a0 (if NAN, then you need the new 3.0 compatible Angular Stuff)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are needing to use a plugin that hasn't been upgraded to support 3.0 you basically have three choices, and guess what I can help with each of them... Wait for it to be updated; you can check my site http:\/\/plugins.nativescript.rocks; then select the \"3.0\" plugins list, now you can easily see when a&hellip; <a class=\"more-link\" href=\"http:\/\/fluentreports.com\/blog\/?p=509\">Continue reading <span class=\"screen-reader-text\">NativeScript: Downgrading to 2.5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15,39],"tags":[16],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-nativescript","category-tips","tag-nativescript","entry"],"_links":{"self":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=509"}],"version-history":[{"count":3,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":512,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions\/512"}],"wp:attachment":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}