spaceagetv / electron-bytenode-example

A basic Hello World boilerplate using Webpack to convert Electron Javascript code to binary using Bytenode and the Bytenode Webpack Plugin
66 stars 15 forks source link

An unhandled error has occurred inside Forge: #8

Closed hienvuong2810 closed 2 years ago

hienvuong2810 commented 3 years ago

When I clone project and install package with Yarn, after that start

✖ Launch Dev Servers

An unhandled error has occurred inside Forge:
Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'historyApiFallback'. These properties are valid:
   object { mimeTypes?, writeToDisk?, methods?, headers?, publicPath?, stats?, serverSideRender?, outputFileSysValidationError: Invalid options object. Dev Middleware has been initialized using an options object that does 
not match the API schema.
 - options has an unknown property 'historyApiFallback'. These properties are valid:
   object { mimeTypes?, writeToDisk?, methods?, headers?, publicPath?, stats?, serverSideRender?, outputFileSystem?, index? }
    at validate (E:\electron-bytenode-example\node_modules\schema-utils\dist\validate.js:104:11)
    at wdm (E:\electron-bytenode-example\node_modules\webpack-dev-middleware\dist\index.js:31:29)
    at E:\electron-bytenode-example\node_modules\@electron-forge\plugin-webpack\src\WebpackPlugin.ts:292:22    
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

any way to fix it?

jjeff commented 3 years ago

I haven't tested with yarn. Do you get an error with npm?

jjeff commented 2 years ago

I'm closing because this issue is stale. Please reopen if there is new information.