Description
Pre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.4.0
Electron version
31.2.1
Operating system
Windows 10
Last known working Electron Forge version
No response
Expected behavior
main.js
const test = require('../resources/test');
Actual behavior
App threw an error during load
Error: Cannot find module '../resources/test'
Require stack:
C:\www_desktop\cantar_v2.vite\build\main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1152:15)
at s._resolveFilename (node:electron/js2c/browser_init:2:121098)
at Module._load (node:internal/modules/cjs/loader:993:27)
at c._load (node:electron/js2c/node_init:2:17025)
at Module.require (node:internal/modules/cjs/loader:1240:19)
at require (node:internal/modules/helpers:179:18)
at Object. (C:\www_desktop\cantar_v2.vite\build\main.js:5:14)
at Module._compile (node:internal/modules/cjs/loader:1373:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
at Module.load (node:internal/modules/cjs/loader:1215:32)
Steps to reproduce
Hi. I'm trying to load locale file in main.js
### Additional information
_No response_