Skip to content

examples/explorer: Don't use named import #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/chat-explorer/src/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from "../package.json"
import * as pkg from "../package.json"

Check failure on line 1 in examples/chat-explorer/src/HomePage.tsx

View workflow job for this annotation

GitHub Actions / Unit Tests

Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to 'Node16'.

Check failure on line 1 in examples/chat-explorer/src/HomePage.tsx

View workflow job for this annotation

GitHub Actions / Build test (pnpm)

Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to 'Node16'.
import { BASE_URL, fetchAndIpldParseJson } from "./utils.js"
import { Card, Flex, Grid, TabNav, Text } from "@radix-ui/themes"
import ActionsTable from "./ActionsTable.js"
Expand Down Expand Up @@ -35,7 +35,7 @@
<Flex direction="column">
<Flex gap="2">
<Text weight="bold">Status:</Text>
<Text weight="medium">Online, running v{version}</Text>
<Text weight="medium">Online, running v{pkg.default.version}</Text>
</Flex>
<Flex gap="2">
<Text weight="bold">URL:</Text>
Expand Down
2 changes: 1 addition & 1 deletion examples/chat-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"tailwindcss": "^3.4.4",
"ts-node": "^10.9.2",
"tsx": "^4.15.6",
"typescript": "^5.4.5"
"typescript": "^5.7.2"
}
}
2 changes: 1 addition & 1 deletion examples/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"typescript": "^5.4.5",
"typescript": "^5.7.2",
"vite": "^5.4.8",
"vite-plugin-node-polyfills": "^0.22.0"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/common-explorer/src/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from "../package.json"
import * as pkg from "../package.json"

Check failure on line 1 in examples/common-explorer/src/HomePage.tsx

View workflow job for this annotation

GitHub Actions / Unit Tests

Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to 'Node16'.

Check failure on line 1 in examples/common-explorer/src/HomePage.tsx

View workflow job for this annotation

GitHub Actions / Build test (pnpm)

Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to 'Node16'.
import { BASE_URL, fetchAndIpldParseJson } from "./utils.js"
import { Card, Flex, Grid, TabNav, Text } from "@radix-ui/themes"
import ActionsTable from "./ActionsTable.js"
Expand Down Expand Up @@ -35,7 +35,7 @@
<Flex direction="column">
<Flex gap="2">
<Text weight="bold">Status:</Text>
<Text weight="medium">Online, running v{version}</Text>
<Text weight="medium">Online, running v{pkg.default.version}</Text>
</Flex>
<Flex gap="2">
<Text weight="bold">URL:</Text>
Expand Down
2 changes: 1 addition & 1 deletion examples/encrypted-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"typescript": "^5.4.5",
"typescript": "^5.7.2",
"vite": "^5.4.8",
"vite-plugin-node-polyfills": "^0.22.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/snake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"typescript": "^5.4.5",
"typescript": "^5.7.2",
"vite": "^5.4.8",
"vite-plugin-node-polyfills": "^0.22.0"
}
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"protons-runtime": "^5.5.0",
"react": "^18.3.1",
"react-chessboard": "^4.6.0",
"typescript": "^5.4.5",
"typescript": "^5.7.2",
"veaury": "^2.4.0",
"vite": "^5.3.3",
"vite": "^5.4.8",
"vitepress": "^1.5.0",
"vue": "^3.3.7",
"vue-markdown-render": "^2.2.1"
Expand Down
Loading