Skip to content

error - Error: The default export is not a React Component in page: "/_app" #9

@GLwxc

Description

@GLwxc

Here is the patch to solve the error in the title, obtain when running the first npm run dev command of the tutorial:
`
diff -ruN pages/_app.js.orig pages/_app.js
--- pages/_app.js.orig 2023-01-21 14:53:09.445917996 +0100
+++ pages/_app.js 2023-01-21 14:50:24.415662655 +0100
@@ -1,7 +1,7 @@
import '@/styles/globals.css';
import { Provider } from "@self.id/react";

-function MyApp({ Component, pageProps }) {
+export default function MyApp({ Component, pageProps }) {
return (
<Provider client={{ ceramic: "testnet-clay" }}>
<Component {...pageProps} />;
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions