Pages not found during transpiling Ionic 3?

#1

I upgraded my Ionic 2 app to Ionic 3.5, by installing a new ionic 3 project and copying my source code, while making the necessary changes.

However, I still have some errors about the templates:

ionic serve
[INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to
       cancel
[15:38:47]  watch started ...
[15:38:47]  build dev started ...
[15:38:47]  clean started ...
[15:38:47]  clean finished in 6 ms
[15:38:47]  copy started ...
[15:38:47]  transpile started ...
[15:38:50]  template error,
            "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\lvl0\build\hdui\lvl0\pages\L0GeneralText.html": Error:
            ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\lvl0\build\hdui\lvl0\pages\L0GeneralText.html'
[15:38:50]  template error,
            "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\lvl0\build\hdui\lvl0\pages\L0GeneralImg.html": Error:
            ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\lvl0\build\hdui\lvl0\pages\L0GeneralImg.html'
[15:38:50]  template error,
            "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\hello-ionic\build\pages\hello-ionic\hello-ionic.html":
            Error: ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\hello-ionic\build\pages\hello-ionic\hello-ionic.html'
[15:38:50]  template error,
            "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\item-details\build\pages\item-details\item-details.html":
            Error: ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\item-details\build\pages\item-details\item-details.html'
[15:38:50]  template error, "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\list\build\pages\list\list.html": Error:
            ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\list\build\pages\list\list.html'
[15:38:50]  template error,
            "C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\hello-ionic-l1\build\pages\hello-ionic-l1\hello-ionic-l1.html":
            Error: ENOENT: no such file or directory, open
            'C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\hello-ionic-l1\build\pages\hello-ionic-l1\hello-ionic-l1.html'
[15:38:50]  transpile finished in 2.65 s
[15:38:50]  preprocess started ...
[15:38:50]  deeplinks started ...
[15:38:50]  deeplinks finished in 90 ms
[15:38:50]  preprocess finished in 91 ms
[15:38:50]  webpack started ...
[15:38:50]  copy finished in 2.92 s
[15:38:57]  webpack finished in 7.58 s
[15:38:57]  sass started ...
[15:38:58]  sass finished in 1.10 s
[15:38:58]  postprocess started ...
[15:38:58]  postprocess finished in 6 ms
[15:38:58]  lint started ...
[15:38:58]  build dev finished in 11.47 s
[15:38:59]  watch ready in 11.62 s
[15:38:59]  dev server running: http://localhost:8100/

The appended build\pages\... does not exist for some reason. The browser page ends up empty.

Any help is appreciated!

#2

I don’t rally understand the error message:

C:\Users\shado\Documents\GitHub\hdui_i35 is your project directory?
C:\Users\shado\Documents\GitHub\hdui_i35\src\pages\lvl0 is one of your pages?
What is the rest in the path? Does it make any sense to you?

1 Like
#3

My bad! I forgot to update the

@Component({
	templateUrl: 'build/hdui/lvl0/pages/L0GeneralImg.html'
})

parameter.

Thanks for the help!

#4

May I ask why your pages are in such a strange place?

#5

Because at first I used this ionic2-electron template. As it was my first Ionic project, I used similar paths that the template uses. Looking at it now, it does look strange, but it must be related to how that project template builds.

I changed it in the Ionic 3 project :slight_smile:.

1 Like