Sooraj
Sooraj
SSolidJS
Created by Sooraj on 10/9/2024 in #support
Blank page while using vercel analytics
I deployed a website made in solid js in vercel i want to use vercel analytics but when i add it to the app.tsx all pages go blank here is the code for app.tsx file
import Home from "./pages/Home/Home";
import Login from "./pages/Login/Login";
import type { Component } from "solid-js";
import Verify from "./pages/verify/Verify";
import { Router, Route } from "@solidjs/router";
import Register from "./pages/Register/Register";
import Dashboard from "./pages/Dashboard/Dashboard";

const App: Component = () => {
return (
<Router>
<Route path="/login" component={Login} />
<Route path="/register" component={Register} />
<Route path="/verify" component={Verify} />
<Route path="/" component={Home} />
<Route path={`/dashboard/:year`} component={Dashboard} />
</Router>
);
};

export default App;
import Home from "./pages/Home/Home";
import Login from "./pages/Login/Login";
import type { Component } from "solid-js";
import Verify from "./pages/verify/Verify";
import { Router, Route } from "@solidjs/router";
import Register from "./pages/Register/Register";
import Dashboard from "./pages/Dashboard/Dashboard";

const App: Component = () => {
return (
<Router>
<Route path="/login" component={Login} />
<Route path="/register" component={Register} />
<Route path="/verify" component={Verify} />
<Route path="/" component={Home} />
<Route path={`/dashboard/:year`} component={Dashboard} />
</Router>
);
};

export default App;
in this I haven't added the analytics tag
12 replies