Skip to content

Commit

Permalink
Small fix to json viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 17, 2024
1 parent a402537 commit e7dc06e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/local_db/firestore-debug.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sep 17, 2024 12:05:20 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
Sep 17, 2024 3:43:38 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
INFO: Started WebSocket server on ws://127.0.0.1:9150
API endpoint: http://127.0.0.1:8080
If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:
Expand All @@ -13,4 +13,5 @@ Note: Support for Datastore Mode is in preview. If you encounter any bugs please
Dev App Server is now running.

*** shutting down gRPC server since JVM is shutting down
240917 15:43:41.420:I 1 [main] [com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer.stop:80] Stopping WebSocket server...
*** server shut down
13 changes: 11 additions & 2 deletions packages/local_db/ui-debug.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
Web / API server started at 127.0.0.1:4000
Web / API server started at ::1:4000
node:internal/modules/cjs/loader:986
throw new ERR_REQUIRE_ESM(filename, true);
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs not supported.
Instead change the require of /home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs to a dynamic import() which is available in all CommonJS modules.
at Function.runMain (pkg/prelude/bootstrap.js:1979:12) {
code: 'ERR_REQUIRE_ESM'
}

Node.js v18.5.0
9 changes: 5 additions & 4 deletions packages/nextjs/app/simpleMint/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"use client";

import { lazy, useEffect, useState } from "react";
import { useEffect, useState } from "react";
import dynamic from "next/dynamic";
import { TextAreaBase } from "./_components/TextAreaBase";
import generateTokenURI from "./generateTokenURI";
import { SimpleMintDescription } from "./simpleMintDescription";
import generateTokenURI from "./_components/generateTokenURI";
import { SimpleMintDescription } from "./_components/simpleMintDescription";
import type { NextPage } from "next";
// import useSWRMutation from "swr/mutation";
import { useAccount, useSignTypedData } from "wagmi";
Expand All @@ -15,7 +16,7 @@ import { addToIPFS } from "~~/utils/simpleNFT/ipfs-fetch";
// import nftsMetadata from "~~/utils/simpleNFT/nftsMetadata";
// import { postMutationFetcher } from "~~/utils/swr";

const LazyReactJson = lazy(() => import("react-json-view"));
const LazyReactJson = dynamic(() => import("react-json-view"), { ssr: false });

const SimpleMint: NextPage = () => {
const { address: connectedAddress } = useAccount();
Expand Down

0 comments on commit e7dc06e

Please sign in to comment.