`tns run android --bundle` doesn't pause on webpack compilation error
See original GitHub issuePlease, provide the details below:
Tell us about the problem
When you run tns run android --bundle
and the webpack compilation fails, the CLI continues with native build, installing the app, etc. It should fail instead.
Note:
tns build android --bundle
works correctly.
Which platform(s) does your issue occur on?
I tested it only on Android.
Please provide the following version numbers that your issue occurs with:
- CLI: next, reproducible with 4.1.2 too
- Cross-platform modules: next
- Runtime(s): next
- Plugin(s): nativescript-dev-webpack is next
Please tell us how to recreate the issue in as much detail as possible.
Using the attached project:
tns run android --bundle
Is there code involved? If so, please share the minimal amount of code needed to
The attached project has an invalid require. jsapp.tar.gz
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Why does tns run android work but when I add --bundle it ...
I am trying to get webpack up and running in my nativescript application using these instructions https://docs.nativescript.org/performance- ...
Read more >Source - GitHub
... NativeScript CLI doesn't pause on webpack compilation errors * [Fixed #4681](https://github.com/NativeScript/nativescript-cli/issues/4681): `tns update ...
Read more >IntelliJ IDEA 2022.1 (221.5080.210 build) Release Notes
Declare a main method in interface, with implementation has the run button display but could not run actually and get a runtime err....
Read more >NativeScript 3.1.0: Performance Improvements and Timeline ...
Timeline: npm run start-android-bundle –uglify. The vanilla tns run doesn't incorporate the webpack and the Angular tooling. Running the practice buddy app ...
Read more >Upgrading tips for Angular 10 projects - The NativeScript Blog
1. Update package.json · Updated package. · Remove platforms version from nativescript section, but keep id property. · Delete webpack. · Run npm ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Acceptance criteria:
noEmitOnError
is true intsconfig.json
noEmitOnError
is false intsconfig.json
noEmitOnErrors
is true inwebpack.confg.js
noEmitOnErrors
is false inwebpack.confg.js
nativescript-dev-webpack
plugin is backwards compatible with NativeScript CLIknown limitation:
noEmitOnError
fromtsconfig.json
due to this issue in ForkTsCheckerWebpackPlugin.We have the following limitations due to the fact that errors are processed in a different manner from webpack’s loaders/plugins:
webpack
is running as they started separate process for checking the errors.html
files in angular apps are not reported to webpack.scss
files in angular apps are reported to webpack.xml
files are not reported to webpackModule not found
error is handled by webpack injs/vue
apps