Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Webpack compilation doesn't stop on syntactic errors in js/vue apps #1067

Open
@endarova

Description

@endarova

Environment
CLI: @next
Plugin(s): nativescript-dev-webpack@next

Describe the bug
webpack compilation doesn't stop on syntactic errors in js/vue apps

To Reproduce

  1. tns create js_app --js
  2. npm i nativescript-dev-webpack@next --save-dev --save-exact
  3. node_modules/.bin/update-ns-webpack --deps --configs
  4. tns run iOS
  5. In main-view-model.js make syntactic error (add additional " somewhere)
    Result: webpack doesn't stop on error the app is deployed and crashes

Expected behavior
the build should stop on the error and app should not be deployed broken

Additional context
Not reproducible with nativescript-dev-webpack@1.2.1
It is reproducible with run android too

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions