Closed jjeff closed 1 year ago
Further examination: The line linked in the error (line 368 of main.js) contains the following:
"use strict";
module.exports = require("C:\\Users\\jeff\\OneDrive\\Documents\\Code\\bytenode-webpack-plugin\\examples\\electron-forge-typescript-webpack\\src\\index.ts");
It looks like the original typescript file is being require
d here rather than the .jsc file.
..and on Mac, this same line reads:
"use strict";
module.exports = require("./main.compiled.jsc");
Hoping to look into it this weekend
:tada: This PR is included in version 2.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This PR updates the modules in
examples/electron-forge-typescript-webpack
. This means moving from beta Electron Forge to release 6, which changes the configuration files some. I also updated all of the config files to Typescript, and included thewebpack.preload.config
file in the configuration.This all works fine on the Mac.
HOWEVER, on Windows, there's currently a bug in either Electron Forge, Bytenode Webpack Plugin, or Bytenode which generates the following error when launching:
The full error is