Skip to content

[4.0] Webpack build fails (workers, snapshot) #898

Closed

Description

@vchimev

Please, provide the details below:

Did you verify this is a real problem by searching [Stack Overflow]

Yes.

Tell us about the problem

Webpack build fails with 4.0 android template.

Please provide the following version numbers that your issue occurs with:

CLI - 3.4.0-2017-12-13-10257

package.json: NativeScript/worker-loader@a8e8467#diff-e0f1dea78433d4d53a86ef66e130cb45

"tns-android": {
      "version": "3.4.0-2017-12-19-02"
    }

Did the error happen while the app was being constructed? (buildtime error)

Gradle build...
         + applying user-defined configuration from /Users/vchimev/Work/git/worker-loader/demo-angular/app/App_Resources/Android/app.gradle
         + adding nativescript runtime package dependency: nativescript-optimized
         + adding aar plugin dependency: /Users/vchimev/Work/git/worker-loader/demo-angular/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Warning: there already is an extend called com.tns.FragmentClass.
Warning: The static binding generator will generate extend from:144effebc9eeeb3fc9ac.worker.js implementation
Warning: there already is an extend called com.tns.FragmentClass.
Warning: The static binding generator will generate extend from:_embedded_script_.js implementation
Exception in thread "main" java.io.IOException: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:/Users/vchimev/Work/git/worker-loader/demo-angular/platforms/android/app/src/main/java/com/tns/FragmentClass.java Class: com.tns.FragmentClass
        at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:64)
        at org.nativescript.staticbindinggenerator.Main.main(Main.java:46)

FAILURE: Build failed with an exception.

Did the error happen while the app was executing? (runtime error)

No.

Please tell us how to recreate the issue in as much detail as possible.

tns build android --bundle --env.aot --env.uglify --env.snapshot --release ...

https://github.com/NativeScript/worker-loader/commits/vchimev/angular5-webpack

Activity

  1. added this to the milestone on Dec 19, 2017
  2. changed the title [-]Webpack build fails with 4.0 android template[/-] [+]Webpack build fails with 4.0 android template (workers, snapshot)[/+] on Dec 19, 2017
  3. changed the title [-]Webpack build fails with 4.0 android template (workers, snapshot)[/-] [+][4.0] Webpack build fails (workers, snapshot)[/+] on Dec 19, 2017
  4. Plamen5kov commented on Jan 16, 2018

    @Plamen5kov
    Contributor

    We're working on a fix for this in here.

  5. vincentpalita commented on Jan 29, 2018

    @vincentpalita

    Running "next" with tns-core-modules & tns-android works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions