-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to define routerOptions #7
Comments
@techieoriname Thanks! You should be able to pass |
I get an error on my IDE when I include it
|
I think the types might be wrong in Vitedge (they are correct in Vite SSR) because this project is still written in pure JS. Can you put a |
No no, you need to wrap it in export default vitedge(App, { routes, routerOptions: { scrollBehavior }, () => {}); You don't need to pass the history, it's done automatically. |
This actually works, but my console is filled up... log below:
|
Great work you have done on this project ✅
However on the
main.ts
file, routerOptions object seem not to be available to define something likescrollbehavior
The text was updated successfully, but these errors were encountered: