Skip to content

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

@vchimev

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions