Skip to content

Commit

Permalink
fix: add .js file extension for imported files
Browse files Browse the repository at this point in the history
re #42
  • Loading branch information
TheEdoRan committed Dec 18, 2023
1 parent 8e3b859 commit 8c88de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/next-safe-action/src/hook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { isNotFoundError } from "next/dist/client/components/not-found";
import { isRedirectError } from "next/dist/client/components/redirect";
import { isNotFoundError } from "next/dist/client/components/not-found.js";
import { isRedirectError } from "next/dist/client/components/redirect.js";
import { useCallback, useEffect, useOptimistic, useRef, useState, useTransition } from "react";
import {} from "react/experimental";
import type { z } from "zod";
Expand Down
4 changes: 2 additions & 2 deletions packages/next-safe-action/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isNotFoundError } from "next/dist/client/components/not-found";
import { isRedirectError } from "next/dist/client/components/redirect";
import { isNotFoundError } from "next/dist/client/components/not-found.js";
import { isRedirectError } from "next/dist/client/components/redirect.js";
import type { z } from "zod";
import type { MaybePromise, SafeAction, ServerCode } from "./types";
import { DEFAULT_SERVER_ERROR, isError } from "./utils";
Expand Down

1 comment on commit 8c88de7

@vercel
Copy link

@vercel vercel bot commented on 8c88de7 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.