You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Environment
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 5.4.1 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.0 version and is up to date.
Node.js: v10.14.0
Describe the bug
After upgrading nativescript-dev-webpack to 0.24.0 (and those > 0.21.2) I get the following error when doing a snapshot build:
Thanks for reporting and investigating this and sorry for the late response!
I do not recommend you using the above-mentioned workaround as the source maps are not working properly with semicolons: true and you will get misleading stack traces when you apply the source maps.
We were able to investigate this and I've opened a pull request with a fix. It was caused by the snapshot plugin which was joining a few files by a newline. When we pass semicolons: false to the Terser plugin, the output files are IIFEs without ; at the end and joining these IIFEs by a newline is generating an invalid JavaScript code.
You could easily test the fix even before the plugin release by replacing
Environment
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 5.4.1 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.0 version and is up to date.
Describe the bug
After upgrading
nativescript-dev-webpack
to0.24.0
(and those > 0.21.2) I get the following error when doing a snapshot build:To Reproduce
Additional context
0ae6030
^ If I comment out line 176:
semicolons: !isAnySourceMapEnabled
my build does work.The text was updated successfully, but these errors were encountered: