Skip to content

Commit e4d105c

Browse files
authored
fix: add devtools for solid, like react has (#49)
the `@tanstack/router-devtools` is react-only, which is why it was disabled for solid. The new `@tanstack/solid-router-devtools` will work, so I've enabled it to be like the react starters I've tested locally that this installs correctly
1 parent 8013c14 commit e4d105c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

templates/solid/base/README.md.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Here is an example layout that includes a header:
132132
133133
```tsx
134134
import { Outlet, createRootRoute } from '@tanstack/solid-router'
135-
import { TanStackRouterDevtools } from '@tanstack/router-devtools'
135+
import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools'
136136
137137
import { Link } from "@tanstack/solid-router";
138138

templates/solid/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tanstack/solid-router": "^1.110.0",
13-
"@tanstack/router-devtools": "^1.109.2",
13+
"@tanstack/solid-router-devtools": "^1.109.2",
1414
"@tanstack/router-plugin": "^1.109.2",
1515
"solid-js": "^1.9.4"
1616
},

templates/solid/code-router/src/main.tsx.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
createRoute,
66
createRouter,
77
} from "@tanstack/solid-router";
8-
// import { TanStackRouterDevtools } from "@tanstack/router-devtools";
8+
import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
99
import { render } from 'solid-js/web'
1010
<% for(const route of routes) { %>import <%= route.name %> from "<%= route.path %>";
1111
<% } %><% if (routes.length > 0) { %>
@@ -26,7 +26,7 @@ const rootRoute = createRootRoute({
2626
<% } %>
2727
<% if (routes.length > 0) { %><Header /><% } %>
2828
<Outlet />
29-
{/* <TanStackRouterDevtools /> */}
29+
<TanStackRouterDevtools />
3030
<% for(const integration of integrations.filter(i => i.type === 'layout')) { %>
3131
<<%= integration.name %> />
3232
<% } %>

templates/solid/file-router/src/routes/__root.tsx.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Outlet, createRootRouteWithContext } from '@tanstack/solid-router'
2-
// import { TanStackRouterDevtools } from '@tanstack/router-devtools'<% for(const integration of integrations.filter(i => i.type === 'layout' || i.type === 'provider')) { %>
2+
import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools'<% for(const integration of integrations.filter(i => i.type === 'layout' || i.type === 'provider')) { %>
33
import <%= integration.name %> from "../<%= integration.path %>";
44
<% } %>
55
<% if (addOnEnabled['solid-ui']) { %>

0 commit comments

Comments
 (0)