diff --git a/packages/vant-cli/src/compiler/compile-package.ts b/packages/vant-cli/src/compiler/compile-package.ts
index ef688ed8a..132e8784c 100644
--- a/packages/vant-cli/src/compiler/compile-package.ts
+++ b/packages/vant-cli/src/compiler/compile-package.ts
@@ -6,8 +6,8 @@ export async function compilePackage(isMinify: boolean) {
const config = getPackageConfig(isMinify);
webpack(config, (err, stats) => {
- if (err || (stats && stats.hasErrors())) {
- reject();
+ if (err || (stats?.hasErrors())) {
+ reject(err || stats?.toString());
} else {
resolve();
}
diff --git a/src/cascader/README.md b/src/cascader/README.md
index 7b2ffbd62..688b752a1 100644
--- a/src/cascader/README.md
+++ b/src/cascader/README.md
@@ -15,10 +15,10 @@ Vue.use(Cascader);
```html
@@ -78,10 +78,10 @@ export default {
```html
diff --git a/src/cascader/README.zh-CN.md b/src/cascader/README.zh-CN.md
index 47f020c7a..753c4e889 100644
--- a/src/cascader/README.zh-CN.md
+++ b/src/cascader/README.zh-CN.md
@@ -21,17 +21,17 @@ Vue.use(Cascader);
```html
@@ -77,7 +77,7 @@ export default {
```html