Problem building with webpack

nativescriptcore
android

#1

I am having a problem with the build, I made a simple app with 2 pages and one component it runs ok but when I build (tns build android --bundle), I have this errors message:

ERROR in ./views/sign-up/list-page.xml
Module not found: Error: Can''t resolve 'D:devmobiletestappsharedcomponentsmenu.xml' in 'D:\dev\mobile\test\app\views\list'
 @ ./views/list/list-page.xml 1:360-425 1:498-563
 @ . sync (root|page)\.(xml|css|js|ts|scss)$
 @ ../node_modules/nativescript-dev-webpack/register-modules.js
 @ ./app.js

ERROR in ./views/home/home-page.xml
Module not found: Error: Can''t resolve 'D:devmobiletestappsharedcomponentsmenu.xml' in 'D:\dev\mobile\test\app\views\home'
 @ ./views/home/home-page.xml 1:360-425 1:498-563
 @ . sync (root|page)\.(xml|css|js|ts|scss)$
 @ ../node_modules/nativescript-dev-webpack/register-modules.js
 @ ./app.js

My component

<StackLayout orientation="horizontal">
    <Button text="A" class="btn btn-rounded-lg btn-active btn-outline" width="25%"></Button>
    <Button text="B" class="btn btn-rounded-lg btn-active btn-outline" width="25%"></Button>
    <Button text="C" class="btn btn-rounded-lg btn-active btn-outline" width="25%"></Button>
</StackLayout>

My pages XML


<Page xmlns="http://schemas.nativescript.org/tns.xsd" 
    xmlns:components="shared/components" navigatingTo="onNavigatingTo" class="page" actionBarHidden="true">

Thanks!!!


#2

With latest webpack my app not working if all the pages are not in the root folder or their name not ending with “page”, looks like you have a similar issue.