Hello people!
I have two JS files:
Whenever I try starting up the game I get this error:
Is there any way I can use the require function to load modules separately? If so, will my game work on any device?
[Bonus Question] When I build the final game, will it package my quests.js file in ./plugins/data folder normally?
Thank you a lot!
I have two JS files:
quests, where I export a test object like this export default {quest: 'abc'} (located in ./plugins/data), and my loaded plugin where I attempted to load the quests file like this: const quests = require('./data/quests.js'); (located in the plugins folder). Whenever I try starting up the game I get this error:
Cannot find module './data/quests.js' Require stack: - C:\Users\Felipe\Documents\RMMZ\PreviewMZ\/index.html . When opening up the plugin window, I've seen this observation at the bottom:Is there any way I can use the require function to load modules separately? If so, will my game work on any device?
[Bonus Question] When I build the final game, will it package my quests.js file in ./plugins/data folder normally?
Thank you a lot!

