From 6c3418d1990f548a9eb6966707226d9f1f181f51 Mon Sep 17 00:00:00 2001 From: Debdut Karmakar Date: Sat, 27 Aug 2022 12:12:33 +0530 Subject: [PATCH] preact-ts template build fix (#1781) * preact imports * Copy fix to template template(!). Remove unused Fragment. * Fix template template! Co-authored-by: Lea Anthony --- .../templates/generate/assets/preact-ts/frontend/src/app.tsx | 1 + .../templates/templates/preact-ts/frontend/src/app.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx index fea2689a..8d4c4d42 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx +++ b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx @@ -2,6 +2,7 @@ import './app.css' import logo from "./assets/images/logo-universal.png" import {Greet} from "../wailsjs/go/main/App"; import {useState} from "preact/hooks"; +import {h} from 'preact'; export function App(props: any) { const [resultText, setResultText] = useState("Please enter your name below 👇"); diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx index 05d7c32d..a0dfb293 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx @@ -2,6 +2,7 @@ import './App.css' import logo from "./assets/images/logo-universal.png" import {Greet} from "../wailsjs/go/main/App"; import {useState} from "preact/hooks"; +import {h} from 'preact'; export function App(props: any) { const [resultText, setResultText] = useState("Please enter your name below 👇");