Comments (3)
Ouch — so sorry about that, apparently I pushed an alpha version without the proper alpha tag.
In the new version, useHydration()
is replaced by useIsomorphic()
, usePayload()
and useData()
.
See the new Vue 3 example here: https://github.com/fastify/fastify-vite/tree/dev/examples/vue-base
I'm working through the holidays in updating the documentation. Later tonight I'll push a new default 2.x release and start using the proper alpha npm tags.
You can access $global
through useIsomorphic()
now, all of those need to be imported from fastify-vite-vue/app
in the alpha 3.x release. If you share a repo with me, I'll help you do the necessary fixes as I work out the new docs.
from fastify-vite.
My repo is at Mbx.
Would be grateful for any help. Currently, my issues are mostly:
- I need to setup Tailwindcss with Vite/Vue, most of the setup is done, but where to hook up the css file is the issue, I've managed to make it work for now, but I'm not sure if that's the way.
- How do I access the fastify instance if at all possible, in my Vite/Vue app?
- And I wanted a custom directory structure for my project, so at 1st, I liked the out-of-box experience of just adding the
server.js
(which in my case isindex.js
) and having theindex.html
added, but with troubles I had, I thought of customizing some things, so, my question is, can I setup the files(e.g if Ieject
) in my own custom directories, I might have missed it from the docs. - Do you suggest I use the 3.x or the default 2.x??
Again, thanks for the help. And great work with this.
from fastify-vite.
Closing issue as part of new maintenance routine. New doc suite at https://fastify-vite.dev!
from fastify-vite.
Related Issues (20)
- Files in /public folder are not served in production mode HOT 4
- Error on Windows: TypeError: Cannot read properties of null (reading 'replace')
- Websocket can not connect when using https fastify
- If vites config contains `defineConfig` with callback, then SSR is broken HOT 3
- How to configure multi-page entry
- Issues running with fastify-compress HOT 4
- Serve static assets from ssr builds in production mode HOT 2
- TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string
- Trace: The CJS build of Vite's Node API is deprecated
- Conflicting websockets between vite and `@fastify/websocket` causing infinite redirects HOT 1
- [react][windows] React Starter Template does not start on Windows HOT 4
- How to use Vue plugins like instance.use(...) HOT 4
- NPM install fails with 'edgesout' error HOT 3
- [SPA] allowing passing additional context to the render function HOT 3
- mts file extension is not supported for vite.config HOT 3
- @fastify/vue Smart Import doesn't resolve path in windows HOT 5
- How to config fastify-vite in a Electron Vite project HOT 1
- Route path resolution of starters/react-base not working in Windows
- Unable to build project and missing files
- Missing `fastify-plugin` dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-vite.