Skip to content

Commit 7491d64

Browse files
fix(tailwind): update to required Remix version (#315)
1 parent 52eea08 commit 7491d64

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

tailwindcss/app/root.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LinksFunction, MetaFunction } from "@remix-run/node";
1+
import type { LinksFunction } from "@remix-run/node";
22
import {
33
Links,
44
LiveReload,
@@ -14,16 +14,12 @@ export const links: LinksFunction = () => [
1414
{ rel: "stylesheet", href: stylesheet },
1515
];
1616

17-
export const meta: MetaFunction = () => ({
18-
charset: "utf-8",
19-
title: "New Remix App",
20-
viewport: "width=device-width,initial-scale=1",
21-
});
22-
2317
export default function App() {
2418
return (
2519
<html lang="en">
2620
<head>
21+
<meta charSet="utf-8" />
22+
<meta name="viewport" content="width=device-width,initial-scale=1" />
2723
<Meta />
2824
<Links />
2925
</head>

tailwindcss/app/routes/_index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { V2_MetaFunction } from "@remix-run/node";
2+
3+
export const meta: V2_MetaFunction = () => [{ title: "New Remix App" }];
4+
5+
export default function Index() {
6+
return <h1 className="text-6xl font-bold text-red-700">Hello World!</h1>;
7+
}

tailwindcss/app/routes/index.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

tailwindcss/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"typecheck": "tsc"
99
},
1010
"dependencies": {
11-
"@remix-run/node": "~1.14.2",
12-
"@remix-run/react": "~1.14.2",
13-
"@remix-run/serve": "~1.14.2",
11+
"@remix-run/node": "~1.16.0",
12+
"@remix-run/react": "~1.16.0",
13+
"@remix-run/serve": "~1.16.0",
1414
"isbot": "^3.6.5",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0"
1717
},
1818
"devDependencies": {
19-
"@remix-run/dev": "~1.14.2",
20-
"@remix-run/eslint-config": "~1.14.2",
19+
"@remix-run/dev": "~1.16.0",
20+
"@remix-run/eslint-config": "~1.16.0",
2121
"@types/react": "^18.0.25",
2222
"@types/react-dom": "^18.0.8",
2323
"eslint": "^8.27.0",

tailwindcss/remix.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/** @type {import('@remix-run/dev').AppConfig} */
22
module.exports = {
3+
future: {
4+
v2_errorBoundary: true,
5+
v2_meta: true,
6+
v2_normalizeFormMethod: true,
7+
v2_routeConvention: true,
8+
},
39
ignoredRouteFiles: ["**/.*"],
410
tailwind: true,
511
// appDirectory: "app",

0 commit comments

Comments
 (0)