Skip to content

Commit 3855d48

Browse files
Ta5rjustlevine
andauthored
fix: correctly use named exports instead of default (#150)
* feat : add import/no-default-export eslint rule. * chore : updated files for no-default-exports. * chore : add changeset. * chore : reorder-import * temp : fix failing gh actions * fix : export default for codegen config and baseConfig * fix: import issue with withSnapWP in next.config.mjs * fix : errors.tsk imports. * chore : update changeset. * chore: remove changeset --------- Co-authored-by: Dovid Levine <david@axepress.dev>
1 parent bae4118 commit 3855d48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import withSnapWP from '@snapwp/next/withSnapWP';
1+
import { withSnapWP } from '@snapwp/next/withSnapWP';
22

33
export default await withSnapWP( {} );

examples/nextjs/starter/src/app/[[...path]]/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'; // Error boundaries must be Client Components
22

3-
import DefaultError from '@snapwp/next/defaultError';
3+
import { DefaultError } from '@snapwp/next/defaultError';
44

55
export default function Error( {
66
error,

examples/nextjs/starter/src/app/global-error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'; // Error boundaries must be Client Components
22

3-
import DefaultError from '@snapwp/next/defaultError';
3+
import { DefaultError } from '@snapwp/next/defaultError';
44

55
export default function GlobalError( {
66
error,

0 commit comments

Comments
 (0)