diff --git a/.codesandbox/templates/next/pages/index.tsx b/.codesandbox/templates/next/pages/index.tsx index a77b4e866d3..c3696089ef5 100644 --- a/.codesandbox/templates/next/pages/index.tsx +++ b/.codesandbox/templates/next/pages/index.tsx @@ -1,5 +1,5 @@ import * as fabric from 'fabric'; -import { NextPage } from 'next'; +import type { NextPage } from 'next'; import { useCallback } from 'react'; import { Canvas } from '../components/Canvas'; diff --git a/e2e/tests/SSR/index.spec.ts b/e2e/tests/SSR/index.spec.ts index 7aec5992f58..1eca523b885 100644 --- a/e2e/tests/SSR/index.spec.ts +++ b/e2e/tests/SSR/index.spec.ts @@ -21,7 +21,9 @@ test.describe('SSR', () => { test.beforeAll(async ({}, testInfo) => { testInfo.setTimeout(60 * 1000); - await killPort(PORT); + try { + await killPort(port); + } catch (error) {} // import `startSandbox` directly once ESM is supported // https://playwright.dev/docs/release-notes#improved-typescript-support const task = spawn(`npm start next -- -p ${PORT} --no-watch`, {