Skip to content

Commit df3a9b0

Browse files
Next15 and React Complier working when built and run but dev server imports are broken
1 parent 17f7917 commit df3a9b0

File tree

6 files changed

+201
-350
lines changed

6 files changed

+201
-350
lines changed

next.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@
88
const nextConfig = {
99
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
1010
reactStrictMode: true,
11-
// bundlePagesRouterDependencies: true,
1211
experimental: {
13-
// TODO: Remove after https://github.com/vercel/next.js/issues/49355 is fixed
14-
// appDir: false,
1512
scrollRestoration: true,
16-
// legacyBrowsers: false,
17-
// reactCompiler: true,
18-
// staleTimes: {
19-
// dynamic: 30,
20-
// static: 180,
21-
// },
13+
reactCompiler: true,
2214
},
2315
env: {},
2416
webpack: (config, {dev, isServer, ...options}) => {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"date-fns": "^2.16.1",
3535
"debounce": "^1.2.1",
3636
"github-slugger": "^1.3.0",
37-
"next": "^15.0.0-canary.43",
37+
"next": "^15.0.0-rc.0",
3838
"next-remote-watch": "^1.0.0",
3939
"parse-numeric-range": "^1.2.0",
4040
"react": "^19.0.0-rc-8971381549-20240625",
@@ -63,7 +63,7 @@
6363
"autoprefixer": "^10.4.2",
6464
"babel-eslint": "10.x",
6565
"eslint": "7.x",
66-
"eslint-config-next": "^15.0.0-rc.0",
66+
"eslint-config-next": "12.0.3",
6767
"eslint-config-react-app": "^5.2.1",
6868
"eslint-plugin-flowtype": "4.x",
6969
"eslint-plugin-import": "2.x",

src/components/Layout/HomeContent.js

+4
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ function Example1() {
915915
isFromPackageImport={false}
916916
noShadow={true}
917917
noMargin={true}>
918+
{/* eslint-disable-next-line react/no-unknown-property */}
918919
<div meta={meta}>{`function Video({ video }) {
919920
return (
920921
<div>
@@ -987,6 +988,7 @@ function Example2() {
987988
isFromPackageImport={false}
988989
noShadow={true}
989990
noMargin={true}>
991+
{/* eslint-disable-next-line react/no-unknown-property */}
990992
<div meta={meta}>{`function VideoList({ videos, emptyHeading }) {
991993
const count = videos.length;
992994
let heading = emptyHeading;
@@ -1078,6 +1080,7 @@ function Example3() {
10781080
isFromPackageImport={false}
10791081
noShadow={true}
10801082
noMargin={true}>
1083+
{/* eslint-disable-next-line react/no-unknown-property */}
10811084
<div meta={meta}>{`import { useState } from 'react';
10821085
10831086
function SearchableVideoList({ videos }) {
@@ -1149,6 +1152,7 @@ function Example4() {
11491152
isFromPackageImport={false}
11501153
noShadow={true}
11511154
noMargin={true}>
1155+
{/* eslint-disable-next-line react/no-unknown-property */}
11521156
<div meta={meta}>{`import { db } from './database.js';
11531157
import { Suspense } from 'react';
11541158

src/components/MDX/CodeDiagram.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export function CodeDiagram({children, flip = false}: CodeDiagramProps) {
1717
});
1818
const content = Children.toArray(children).map((child: any) => {
1919
if (child.type?.mdxName === 'pre') {
20+
// eslint-disable-next-line react/jsx-key
2021
return <CodeBlock {...child.props} noMargin={true} noMarkers={true} />;
2122
} else if (child.type === 'img') {
2223
return null;

src/pages/_document.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ const MyDocument = () => {
8787
}
8888
}
8989
const uwuQueryParam = checkQueryParam();
90-
console.log('uwuQueryParam', uwuQueryParam);
9190
if (uwuQueryParam != null) {
9291
setUwu(uwuQueryParam);
9392
} else if (checkLocalStorage()) {

0 commit comments

Comments
 (0)