Custom publicPath not working with electron

Error message: v2.15.0 ChunkLoadError: Loading chunk 2 failed. (works with v2.14)

Versions

  • nuxt: v2.15.0
  • electron: v11.2.3

It works with nuxt-v2.14.12.

Reproduction

I made a minimum code to reproduce.
https://github.com/tmtk75/nuxt-2-15-reproduce

Steps to reproduce

You can reproduce with https://github.com/tmtk75/nuxt-2-15-reproduce.

yarn && yarn clean && yarn build && yarn start

What is Expected?

It works even with v2.15 as v2.14.
Otherwise, there is another way or a workaround with v2.15.

What is actually happening?

I can see ChunkLoadError: Loading chunk 2 failed. on DevTools when application is launching.

screenshot

1 possible answer(s) on “Custom publicPath not working with electron