Skip to content

Commit 45280b1

Browse files
authored
Rull tilbake React og Next (#3909)
CMS-en fungerer ikke med React 19: decaporg/decap-cms#7365
1 parent 4f2fc3c commit 45280b1

File tree

5 files changed

+105
-106
lines changed

5 files changed

+105
-106
lines changed

apps/skde/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
import type { NextConfig } from "next";
2-
3-
const nextConfig: NextConfig = {
4-
trailingSlash: true,
5-
reactStrictMode: true,
6-
transpilePackages: ["qmongjs"],
1+
module.exports = {
2+
output: "export",
73
images: {
84
loader: "custom",
95
},
10-
output: "export",
6+
trailingSlash: true,
7+
reactStrictMode: true,
8+
transpilePackages: ["qmongjs"],
119
experimental: {
1210
largePageDataBytes: 1024 * 1000,
1311
},
1412
};
15-
16-
export default nextConfig;

apps/skde/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"decap-cms-core": "3.6.1",
4242
"gray-matter": "4.0.3",
4343
"lodash": "4.17.21",
44-
"next": "15.2.4",
44+
"next": "14.2.25",
4545
"next-query-params": "5.1.0",
4646
"qmongjs": "*",
47-
"react": "19.1.0",
47+
"react": "18.3.1",
4848
"react-icons": "5.5.0",
4949
"react-spring": "9.7.5",
5050
"rehype-raw": "7.0.0",

packages/qmongjs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
"d3": "7.9.0",
5151
"d3-format": "3.1.0",
5252
"lodash": "4.17.21",
53-
"next": "15.2.4",
54-
"react": "19.1.0",
55-
"react-dom": "19.1.0",
53+
"next": "14.2.25",
54+
"react": "18.3.1",
55+
"react-dom": "18.3.1",
5656
"react-icons": "5.5.0",
5757
"react-select": "5.10.1",
5858
"resize-observer-polyfill": "1.5.1",

0 commit comments

Comments
 (0)