diff --git a/example/with-app-router/next-env.d.ts b/example/with-app-router/next-env.d.ts index 4f11a03..40c3d68 100644 --- a/example/with-app-router/next-env.d.ts +++ b/example/with-app-router/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/example/with-app-router/tsconfig.json b/example/with-app-router/tsconfig.json index 2c2cd82..78d9efb 100644 --- a/example/with-app-router/tsconfig.json +++ b/example/with-app-router/tsconfig.json @@ -21,7 +21,8 @@ "baseUrl": "./", "paths": { "@ant-design/nextjs-registry": ["../../src/index.ts"] - } + }, + "target": "ES2017" }, "include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] diff --git a/package.json b/package.json index d790d80..294f305 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "father": "^4.3.7", "husky": "^8.0.1", "lint-staged": "^13.0.3", - "next": "^14.0.4", + "next": "^15.0.0", "np": "^7.0.0", "prettier": "^2.0.5", "react": "^18.0.0", @@ -52,7 +52,7 @@ "peerDependencies": { "@ant-design/cssinjs": "^1.18.2", "antd": "^5.0.0", - "next": "^14.0.0", + "next": "^14.0.0 || ^15.0.0", "react": ">=16.0.0", "react-dom": ">=16.0.0" },