Hello! I’ve been having a lot of fun developing JS scripts for Kintone, and I’m currently moving on to developing my first plugin from scratch through plugin-packer.
I wanted to reference some npm packages (e.g. moment, sweetalert2), but get the following error when using ‘require’: “Uncaught ReferenceError: require is not defined”
For JS customizations, I was able to use ‘require’ references with no issues, likely because I bundled first through webpack before uploading to Kintone… but I’m wondering if plugin-packer acts differently (i.e. not necessarily bundling?). My plugin works perfectly if I remove the “require” and related functions.
The closest thing to this question I found was this article on the Japanese platform, but felt like plugins were a separate issue. Apologies if this is a duplicate question nonetheless.
Thank you in advance for any tips!