I recently created an electron/angular app which runs the following inside main.ts
:
win.loadURL(url.format({
pathname: path.join(__dirname, 'dist/index.html'),
protocol: 'file:',
slashes: true
}));
When the electron app loads, the following shows
Somehow, the html is loading inside a
<pre>
tag inside html.
I have checked __dirname/dist
and the folder contains all the correct files (i.e. index.html, main.js, etc). Has anyone seen something similar with electron before? If so, any clues as to what is happening?