Skip to content
Discussion options

You must be logged in to vote

You can't import it like that. Just import

// anywhere you have this
export const k = kaplay();
// in your custom comp file
import { k } from "./file.js"

Then use k.Vec2

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@snowfangcun
Comment options

Answer selected by lajbel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants