diff --git a/.changeset/clever-teachers-live.md b/.changeset/clever-teachers-live.md new file mode 100644 index 0000000000..dd9df28446 --- /dev/null +++ b/.changeset/clever-teachers-live.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/shared-utils": patch +--- + +fix process is not defined diff --git a/packages/utilities/shared-utils/src/console.ts b/packages/utilities/shared-utils/src/console.ts index 302779da31..b0fd19b4f8 100644 --- a/packages/utilities/shared-utils/src/console.ts +++ b/packages/utilities/shared-utils/src/console.ts @@ -8,7 +8,7 @@ export function warn(message: string, component?: string, ...args: any[]) { if (warningStack[log]) return; warningStack[log] = true; - if (process?.env?.NODE_ENV !== "production") { + if (process.env.NODE_ENV !== "production") { // eslint-disable-next-line no-console return console.warn(log, args); }