Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite complains #21

Open
silenceofthewans opened this issue Mar 5, 2023 · 1 comment · May be fixed by #24
Open

Vite complains #21

silenceofthewans opened this issue Mar 5, 2023 · 1 comment · May be fixed by #24

Comments

@silenceofthewans
Copy link

Screenshot (200)

@jonathanhawleypeters
Copy link

I'll add that I get the following error when building a Svelte app with p2pcf

Screen Shot 2023-03-26 at 4 35 33 PM

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.

@pubkey pubkey linked a pull request Nov 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants