From 22516f2acdf4672f77a1362a30747dbe133d7a56 Mon Sep 17 00:00:00 2001 From: Ryuujo Zhang Date: Wed, 23 Nov 2022 10:50:36 +0800 Subject: [PATCH 1/3] [Vite+TS] Tips of solving type incompatibility. Type conflicts can be caused by installing `rollup` with version `>=3` as peer dependency unconsciously. Possible prevention of #2105 --- docs/docs/getting-started.server.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index ea662f414..93fa1e817 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -346,6 +346,15 @@ If you use more modern JavaScript features than what your users support, [configure Vite’s `build.target`](https://vitejs.dev/guide/build.html#browser-compatibility). +
+ Possible Compatibility Issue + As for [vite](https://github.com/vitejs/vite) 3, `rollup@^2.79.1` is applied. + You might notice that there was a warning of peer dependency problem. Please + ignore it or add `rollup` manually to your devDependencies with + **version `^2.79.1`**. This avoids possible incompatibility, for when the + version of `rollup` is not specified, `rollup@>=3` will be install by default. +
+ See also [¶ Rollup][rollup], which is used in Vite, and see [¶ Vue][vue], if you’re using that, for more info. From 4fa9c7809788e97db9e029a5bee794a4c378618a Mon Sep 17 00:00:00 2001 From: ryuujo1573 Date: Thu, 24 Nov 2022 21:25:19 +0800 Subject: [PATCH 2/3] Update getting-started.server.mdx make info succinct. --- docs/docs/getting-started.server.mdx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index 93fa1e817..046068b0e 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -346,14 +346,10 @@ If you use more modern JavaScript features than what your users support, [configure Vite’s `build.target`](https://vitejs.dev/guide/build.html#browser-compatibility). -
- Possible Compatibility Issue - As for [vite](https://github.com/vitejs/vite) 3, `rollup@^2.79.1` is applied. - You might notice that there was a warning of peer dependency problem. Please - ignore it or add `rollup` manually to your devDependencies with - **version `^2.79.1`**. This avoids possible incompatibility, for when the - version of `rollup` is not specified, `rollup@>=3` will be install by default. -
+ + **note**: Vite 3 requires the older `rollup@<3`. Make sure `rollup@3` is not + installed. + See also [¶ Rollup][rollup], which is used in Vite, and see [¶ Vue][vue], if you’re using that, for more info. From 78ea076f143c6c784928c963b597d518885b0951 Mon Sep 17 00:00:00 2001 From: ryuujo1573 Date: Thu, 24 Nov 2022 21:28:40 +0800 Subject: [PATCH 3/3] Fix format --- docs/docs/getting-started.server.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/getting-started.server.mdx b/docs/docs/getting-started.server.mdx index 046068b0e..47c7567fe 100644 --- a/docs/docs/getting-started.server.mdx +++ b/docs/docs/getting-started.server.mdx @@ -347,8 +347,8 @@ If you use more modern JavaScript features than what your users support, `build.target`](https://vitejs.dev/guide/build.html#browser-compatibility). - **note**: Vite 3 requires the older `rollup@<3`. Make sure `rollup@3` is not - installed. + **Note**: Vite 3 requires the older `rollup@2`. + Make sure `rollup@3` is not installed. See also [¶ Rollup][rollup], which is used in Vite, and see [¶ Vue][vue], if