Closed samydoesit closed 1 year ago
Fails right there in my case (nuxt.mjs
):
Simple workaround for now:
// plugins/floating-vue.ts
import { defineNuxtPlugin } from '#app'
import FloatingVue from 'floating-vue'
import 'floating-vue/dist/style.css'
export default defineNuxtPlugin(({ vueApp }) => {
vueApp.use(FloatingVue)
})
@samydoesit It works, thanks
Also need to remove modules: ['floating-vue/nuxt']
from nuxt.config.js
It works,
but when i execute the command node .output/server/index.mjs
,Fails right there
@BlackSkyJY In our Nuxt 3 Project node .output/server/index.mjs
works without problems using the suggested workaround.
Looks like a Problem on your side. Provide a reproduction for further investigation.
It works, but when i execute the command
node .output/server/index.mjs
,Fails right there
Same as me.
I can only guess maybe a Windows Problem. 🤷♂️
Could @zc1342303 and/or @BlackSkyJY open a new Issue because on Unix/Mac platform node .output/server/index.mjs
is working.
I have same issue on my intel macbook. Nuxt 3.0.0-rc.14 with Nitro 1.0.0 using beta.20
I also have this error:
ERROR Cannot start nuxt: Cannot read properties of undefined (reading 'nuxt')
Using macOS and Nuxt v3.2.
Any none workaround janky fix for this yet?
It works, but when i execute the command
node .output/server/index.mjs
,Fails right thereSame as me.
Fixed for me after updating Nuxt to 3.2.3!
Even with Nuxt 3.2.3, I still get Cannot read properties of undefined (reading 'nuxt')
Maybe @danielroe can help here?
I've successfully installed it in Nuxt 3.4.1 by creating a plugin.
// plugins/floating-vue.ts
import FloatingVue from "floating-vue"
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(FloatingVue)
})
Closing, fixed since v2.0.0-beta.23
Hello Nuxt v3.0.0 hast just released and i have found out that the build is crashing using
"floating-vue": "2.0.0-beta.20",
.Stackblitz Repro
What is happening?
If i try to start the server dev or build it crashes immediately.
Expected behavior:
No crash on startup.