Skip to content

inject() can only be used inside setup() when building app with esbuild #11200

Answered by LinusBorg
jvns asked this question in Help/Questions
Discussion options

You must be logged in to vote
import { createApp } from 'vue/dist/vue.esm-browser.js'

You are importing from a different build version of Vue than formkit does (it just imports from 'vue')

So your build includes two different copies of Vue in your bundle, which then conflict at runtime because Vue relies on some singletons for effect tracking etc

Replies: 2 comments 1 reply

Comment options

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

Answer selected by jvns
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants