I’ve successfully integrated Vue, however I usually work with Nuxt for my Vue projects and I’m having trouble integrating them together. Do you have any experience with a nuxt workflow? I’m guessing a Next.js workflow would be similar, too.
I haven’t used nuxt before - I know of at least one company having built a project using next (I’m hestitant to ping them on a sunday tho - but can ask if they have experience/tips they can share tomorrow)
ok thanks! I promise if I can get this workflow setup I will be getting a commercial subscription - it’s my last major roadblock for integration into some upcoming projects
Just a small update…I’ve narrowed down some of the issues to the Vite config:
basicSsl was interfering with Nuxt’s websockets
needlePlugins was causing issues something to do with the ignore config
useGzip was causing issues
Now I’m stuck on getting the needle modules to load, I believe it’s an issue with the way the node_modules folder uses a symlink to the Unity library. Nuxt is following the symlink and relative paths are getting screwed up
hey I think I’ve got it…needs some refinement but I’ll try to better outline all the steps, I have a feeling there are more elegant solutions than what I ended up with
Hey! We worked with next and I think besides the naming similarities they’re quite different. However: We had a similar experience I guess. For now we went with keeping the projects separated instead of a real integration. Our next project has a Needle folder which holds the exported project. We copied the needle-engine package to a vendor folder within next and edited needle’s package.json to reference that one instead going to the unity project. In the end we just wrapped loading the needle generated js script and copy all assets to our public folder on file change
Thanks @danield4148, I essentially did the same thing, just pulling everything into public…I’ll share more info in this thread for @marcel and crew to understand what else I had to change in the Vite config and Nuxt config
Hey, I was wondering if the minimal nuxt.js setup came to anything? Couldn’t see it amongst the samples on github, but perhaps it’s hosted elsewhere? Thanks
I’m very happy to hear that, and excited to see what you’ll make!
Personally I like Svelte/SvelteKit a bit more than Nuxt so far (and our samples website at Needle Engine Samples is built with that), but both are pretty great.