Skip to content

Commit 32b432e

Browse files
committed
fix: 🐛 Named export 'cyan' not found. The requested module 'pic
1 parent 5297506 commit 32b432e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/many-impalas-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperse/next-config": patch
3+
---
4+
5+
Named export 'cyan' not found. The requested module 'picocolors'

src/printEnv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cyan } from 'picocolors';
1+
import picocolors from 'picocolors';
22
import { type SafeParseSuccess } from 'zod';
33

44
/**
@@ -10,7 +10,7 @@ export const printEnv = (
1010
section: string,
1111
zodSafeParseSuccess: SafeParseSuccess<Record<string, unknown>>
1212
) => {
13-
const prefix = cyan('- info'.padEnd(7));
13+
const prefix = picocolors.cyan('- info'.padEnd(7));
1414
console.info(prefix.concat(`${section} validation successful:`));
1515
for (const [key, value] of Object.entries(zodSafeParseSuccess.data)) {
1616
console.info(prefix.concat(`${key}=${value}`));

0 commit comments

Comments
 (0)