maxatwork / svelte-electron-template

Svelte+Electron+Storybook project template with live reload
MIT License
54 stars 9 forks source link

How to use node packages? #1

Open JanMalch opened 5 years ago

JanMalch commented 5 years ago

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.

me-y commented 4 years ago

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