Title: Huge pain migrating to {N} 3.4 with WebPack · Issue #911 · NativeScript/android · GitHub
Open Graph Title: Huge pain migrating to {N} 3.4 with WebPack · Issue #911 · NativeScript/android
X Title: Huge pain migrating to {N} 3.4 with WebPack · Issue #911 · NativeScript/android
Description: Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, which apparently offers greats performance i...
Open Graph Description: Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, whic...
X Description: Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, whic...
Opengraph URL: https://github.com/NativeScript/android/issues/911
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Huge pain migrating to {N} 3.4 with WebPack","articleBody":"Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, which apparently offers greats performance improvements. \r\n\r\nTo do so, I followed each one of the instructions [here](https://www.nativescript.org/blog/nativescript-webpack-0.9.0-what-changed-and-how-to-upgrade). This led me to have a new version of the application, getting webpack (which I didn't succeeded to get working on the previous version) and {N} 3.4.\r\nAs I am typing on my keyboard the so-used command to run the app on my device, I am full of hopes that the Nativescript Developer team found a way to get rid of all the problems that was happening before, when trying to integrate WebPack to an existing project.\r\n\r\nOh no I am in front of a big stack of errors about [relative paths](https://github.com/NativeScript/nativescript-dev-webpack/issues/372); thus I refactor all of my components' paths to stop seeing all these errors.\r\n\r\nNow everything is clean, the app builds without any problem, it is now installed on my device. My application is now opening, that's wonderful it works like charm now, and oh wait, it just crashed ...\r\nPerhaps just a bug, I try to restart the app, and it crash again ...\r\n\r\nAll my hopes fly away, I facing the same problems that with the previous nativescript version.\r\n\r\nI am not going to let down so easily, so I try to get it running with all the optimized setting options I have found :\r\ntns run android --bundle --env.aot --env.snapshot --env.uglify --env.report\r\nDoing so the app is not even building, and shows other errors.\r\n\r\nI have currently been struggling against an incalculable number of errors coming from everywhere, but I feel like stuck in quicksand. Every time I solve one, another is popping.\r\nFor example, I had errors about SDK licenses, about aot files excluded from tsconfig, about plugin dependencies, but nothing seems to be the final solution.\r\nSo I am here to request for your help because I am getting desperate getting my app running with all the benefits from webpack ...\r\n\r\nHere is the latest error I am facing : \r\n\r\n```\r\nRunning full build\r\nException in thread \"main\" java.io.IOException: File already exists. This may lead to undesired behavior.\r\nPlease change the name of one of the extended classes.\r\nFile:/Users/me/Documents/nativescript_apps/myapp/platforms/android/app/src/main/java/com/tns/gen/java/lang/Object_frnal_ts_helpers_l58_c38__t.java Class: \r\n at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:68)\r\n at org.nativescript.staticbindinggenerator.Main.main(Main.java:15)\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file '/Users/me/Documents/nativescript_apps/myapp/platforms/android/build-tools/android-static-binding-generator/build.gradle' line: 284\r\n\r\n* What went wrong:\r\nExecution failed for task ':asbg:generateBindings'.\r\n\u003e Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1\r\n\r\n```\r\n\r\nAs before, if I launch `tns run android`, the app builds fine, but crashes on startup, and if I run `tns run android --bundle --env.aot --env.snapshot --env.uglify --env.report` I get this error.\r\n\r\nI will appreciate any kind of help !\r\n \r\n ","author":{"url":"https://github.com/TheOnlyMatt","@type":"Person","name":"TheOnlyMatt"},"datePublished":"2018-01-03T15:18:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":32},"url":"https://github.com/911/android/issues/911"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b6392a2-bd67-c68f-c757-56649a41682f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0A8:2E4579:BA16CB:1024260:6A6252E8 |
| html-safe-nonce | 832167cc5bd6ace2b05b91b4be4c94bc353164260fddb9b6494af13bd9040dd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEE4OjJFNDU3OTpCQTE2Q0I6MTAyNDI2MDo2QTYyNTJFOCIsInZpc2l0b3JfaWQiOiIxNTc4NDg5MDcxMDYwMjc1OTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a04e1be35bcea437a1070e055ef09c275bba4c9c25ad03394080e14ece0a4314 |
| hovercard-subject-tag | issue:285716482 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/213f4624dcca5daa5304298fe69a1aa2792a71ee9d06867fcdb7428eb8b5d520/NativeScript/android/issues/911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/213f4624dcca5daa5304298fe69a1aa2792a71ee9d06867fcdb7428eb8b5d520/NativeScript/android/issues/911 |
| og:image:alt | Despite the slowness of the looong launch time and the slow navigation experiencing on the version 3.3, I decided to update to the latest version of Nativescript, embedding the famous Webpack, whic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheOnlyMatt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 77f5af7d0fa3843b1779a53f60ec016b3f962e46051fb05c2e9b608a8138eefb |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/android git https://github.com/NativeScript/android.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 29137950 |
| octolytics-dimension-repository_nwo | NativeScript/android |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29137950 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/android |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d3ce7d369aae307e197872f810f80f3ed9051c78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width