p2pcf
p2pcf copied to clipboard
Vite complains

I'll add that I get the following error when building a Svelte app with p2pcf
Which leads me to this StackOverflow article, which says:
Update For Node.js / NPM Add "type": "module" to your package.json file.
{
// ...
"type": "module",
// ...
}
Note: When using modules, if you get ReferenceError: require is not defined, you'll need to use the import syntax instead of require. You can't natively mix and match between them, so you'll need to pick one or use a bundler if you need to use both.