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.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Webpack build fails on Windows when using the @next version and updated dependencies.
Running tns build android --bundle --env.uglify results in multiple errors:
ERROR in ./calendar/view-modes/view-modes-page.xml
Module not found: Error: Can't resolve 'C:UsersstratevDocumentsGitHub
ativescript-ui-calendardemoapp
avigationexample-page.js' in 'C:\Users\stratev\Documents\GitHub\nativescript-ui-calendar\demo\app\calendar\view-modes'
@ ./calendar/view-modes/view-modes-page.xml 1:69-174 1:260-365
@ . sync (root|page)\.(xml|css|js|ts|scss)$
@ ../node_modules/nativescript-dev-webpack/register-modules.js
@ ./app.ts
Unable to apply changes on device: xxxxx. Error is: Executing webpack failed with exit code 2..
@sis0k0 Actually, I only can run tns run Android. tns run android --bundle crashes the app when starting.
I really need to bundle with Webpack, my build depends on some Webpack plugins.
Same here . --bundle crashes. ( windows machine)
This prevents us from upgrading.... @sis0k0 is there any hotfix version webpackdev@? than we can apply a fix ?
@mgambati problem is with fragments.
Workaround: I refactored my app by removing all fragments out of xml and replacing with builder.load({ path: 'shared', name: 'actionbar' }); in the js files.
Activity
gore1 commentedon Jun 5, 2018
Confirmed.
I have same issue after updating to webpack 0.12 following blogpost: https://www.nativescript.org/blog/upgrading-to-nativescript-webpack-0.12.0
On Windows the backslashes seem to get lost.
NickIliev commentedon Jun 8, 2018
@sis0k0 let me know if you need application/environment to reproduce this issue.
mgambati commentedon Jun 12, 2018
What workaround is possible to fix paths in Windows?
sis0k0 commentedon Jun 12, 2018
@mgambati, try running
tns run androidfirst and thentns run android --bundle.mid787 commentedon Jun 12, 2018
@sis0k0 Can we add to that uglify & aot ?
mgambati commentedon Jun 12, 2018
@sis0k0 Actually, I only can run
tns run Android.tns run android --bundlecrashes the app when starting.I really need to bundle with Webpack, my build depends on some Webpack plugins.
mid787 commentedon Jun 13, 2018
Same here . --bundle crashes. ( windows machine)
This prevents us from upgrading....
@sis0k0 is there any hotfix version
webpackdev@?than we can apply a fix ?NickIliev commentedon Jun 13, 2018
Caused by #558
gore1 commentedon Jun 13, 2018
@mgambati problem is with fragments.
Workaround: I refactored my app by removing all fragments out of xml and replacing with builder.load({ path: 'shared', name: 'actionbar' }); in the js files.