change id of root of app so styling workds

This commit is contained in:
Triston Armstrong 2024-03-27 22:20:48 -05:00
parent 56f489e44c
commit 58db12967a
4 changed files with 15 additions and 5 deletions

View File

@ -7,7 +7,7 @@
</head>
<body>
<div id="root" />
<div id="app" />
<div id="portal" />
<script type="module" src="/src/main.ts" defer></script>
</body>

View File

@ -7,7 +7,7 @@ document.addEventListener("touchstart", () => {
document.body.setAttribute("inputMode", "touch")
})
const root = document.querySelector<HTMLDivElement>("#root")!
const root = document.querySelector<HTMLDivElement>("#app")!
mount(App, { root, maxFrameMs: 16 })
document.body.addEventListener("contextmenu", (e) => {

View File

@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ES2022",
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
@ -20,5 +20,6 @@
"noFallthroughCasesInSwitch": true,
"jsx": "preserve"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}

9
tsconfig.node.json Normal file
View File

@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}