How to use node packages so I can use the fs package for example? I keep getting errors like "require is not defined".
When using rollup-plugin-node-builtins then I get an error that __dirname is not defined.
Hello I have the same issue trying to use electron-store package. I get this "require is not defined" error and I am not experienced enough to figure out how to call this.
Thanks for helping
Regards
How to use node packages so I can use the
fs
package for example? I keep getting errors like "require
is not defined". When usingrollup-plugin-node-builtins
then I get an error that__dirname
is not defined.