Closed ccsv closed 1 year ago
That means there was an error running your plugin. Try registering a global error handler in your Nuxt app.
Would you provide a reproduction? 🙏
@danielroe I tried doing a reproduction not sure if you can see it
https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz?file=app.vue
If you save the reproduction, it will give you a unique URL you can then share with me.
@danielroe Sorry I am having trouble saving and sharing it.
Basically I created a plugins
folder added the exact copy of the urql.js
above inside and added this in app.vue:
<template>
<body>
<p>Click the button to test</p>
<button @click="talk()">Test</button>
</body>
</template>
<script>
export default {
setup(){
function talk() {
console.log("hi")
}
return{
talk,
}
}
I think it's this typo: nuxt.payload
should be nuxtApp.payload
. But I think we should be logging this for you - that's a bug.
Environment
I am running windows 10 and using firefox
Nuxt project info:
Windows_NT
v18.12.1
3.2.2
2.2.2
npm@9.3.1
vite
css
,build
-
Build Modules:
-
Reproduction
Create a vue page with a
@click
function on it that does somethingInstall
@urql/vue
using:Next make a urql.js in plugin with this:
Run
npm run dev
Describe the bug
The click function will not fire. Not sure why. If you have other javascript libraries like primevue or bootstrapvue the dropdown does not work too
Additional context
No response
Logs
No response