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

cytosnap issue with vite.js #27

Closed
JulienTom33 opened this issue Jul 28, 2023 · 2 comments
Closed

cytosnap issue with vite.js #27

JulienTom33 opened this issue Jul 28, 2023 · 2 comments

Comments

@JulienTom33
Copy link

JulienTom33 commented Jul 28, 2023

Hi,

I want to use cytosnap in my vite.js project.
But when i import the package, i have this error: "Uncaught (in promise) ReferenceError: require is not defined"

var cytosnap = require('cytosnap'); var snap = cytosnap();

Is there any issue?

Thanks!

@JulienTom33 JulienTom33 changed the title cytosnap problem with vite.js cytosnap issue with vite.js Jul 28, 2023
@maxkfranz
Copy link
Member

Cytosnap is for the server, not the client.

See:

@JulienTom33
Copy link
Author

Okay!

So i can use it in an express.js server?

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

No branches or pull requests

2 participants