klarna / electron-redux

Use redux in the main and browser processes in electron
MIT License
743 stars 94 forks source link

Error with Electron-Forge when trying to import anything for main #312

Closed tr3ysmith closed 3 years ago

tr3ysmith commented 3 years ago

Describe the bug Trying to import stateSyncEnhancer from 'electron-redux/main' and I get this message when running electron-forge import { stateSyncEnhancer } from 'electron-redux/main';

image

tr3ysmith commented 3 years ago

Well It seems like I was able to fix it by swapping my webpack-asset-relocator-loader to the vercel version that is more maintained.

yarn add -D @vercel/webpack-asset-relocator-loader

and then go into your webpack rules and swap the loader to that one. It fixed the error.