kirainmoe / tongfang-utility

✨An all-in-one hackintosh toolbox for Tongfang laptops.
171 stars 21 forks source link

cannot pack:linux #73

Open xevilstar opened 2 years ago

xevilstar commented 2 years ago

ERROR in ./node_modules/@tauri-apps/api/app.ts 19:27 Module parse failed: Unexpected token (19:27) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | @returns A promise resolving to the application version. | /

async function getVersion(): Promise { | return invokeTauriCommand({ | __tauriModule: 'App',

ERROR in ./node_modules/@tauri-apps/api/cli.ts 14:0 Module parse failed: The keyword 'interface' is reserved (14:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { invokeTauriCommand } from './helpers/tauri'

interface ArgMatch { | /* | string if takes value

ERROR in ./node_modules/@tauri-apps/api/clipboard.ts 19:29 Module parse failed: Unexpected token (19:29) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | @returns A promise indicating the success or failure of the operation. | /

async function writeText(text: string): Promise { | return invokeTauriCommand({ | __tauriModule: 'Clipboard',

ERROR in ./node_modules/@tauri-apps/api/dialog.ts 31:0 Module parse failed: The keyword 'interface' is reserved (31:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | /* Extension filters for the file dialog. /

interface DialogFilter { | /* Filter name. / | name: string

ERROR in ./node_modules/@tauri-apps/api/event.ts 17:0 Module parse failed: The keyword 'interface' is reserved (17:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { LiteralUnion } from 'type-fest'

interface Event { | /* Event name / | event: string

ERROR in ./node_modules/@tauri-apps/api/fs.ts 38:7 Module parse failed: Unexpected token (38:7) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { invokeTauriCommand } from './helpers/tauri'

export enum BaseDirectory { | Audio = 1, | Cache,

ERROR in ./node_modules/@tauri-apps/api/globalShortcut.ts 29:7 Module parse failed: Unexpected token (29:7) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { transformCallback } from './tauri'

export type ShortcutHandler = (shortcut: string) => void | | /**

ERROR in ./node_modules/@tauri-apps/api/http.ts 29:0 Module parse failed: The keyword 'interface' is reserved (29:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { invokeTauriCommand } from './helpers/tauri'

interface ClientOptions { | maxRedirections: number | connectTimeout: number

ERROR in ./node_modules/@tauri-apps/api/notification.ts 32:0 Module parse failed: The keyword 'interface' is reserved (32:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | Options to send a notification. | /

interface Options { | /* Notification title. / | title: string

ERROR in ./node_modules/@tauri-apps/api/os.ts 40:25 Module parse failed: Unexpected token (40:25) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | The value is set at compile time. Possible values are 'aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', and 'win32'. | /

async function platform(): Promise { | return invokeTauriCommand({ | __tauriModule: 'Os',

ERROR in ./node_modules/@tauri-apps/api/path.ts 36:23 Module parse failed: Unexpected token (36:23) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | @returns | /

async function appDir(): Promise { | return invokeTauriCommand({ | __tauriModule: 'Path',

ERROR in ./node_modules/@tauri-apps/api/process.ts 20:28 Module parse failed: Unexpected token (20:28) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | @returns A promise indicating the success or failure of the operation. | /

async function exit(exitCode: number = 0): Promise { | return invokeTauriCommand({ | __tauriModule: 'Process',

ERROR in ./node_modules/@tauri-apps/api/shell.ts 32:0 Module parse failed: The keyword 'interface' is reserved (32:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders */

interface SpawnOptions { | /* Current working directory. / | cwd?: string

ERROR in ./node_modules/@tauri-apps/api/tauri.ts 13:8 Module parse failed: Unexpected token (13:8) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | /* @ignore /

declare global { | // eslint-disable-next-line @typescript-eslint/no-unused-vars | interface Window {

ERROR in ./node_modules/@tauri-apps/api/updater.ts 14:5 Module parse failed: Unexpected token (14:5) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders import { once, listen, emit, UnlistenFn } from './event'
> type UpdateStatus = 'PENDING' 'ERROR' 'DONE' 'UPTODATE'
interface UpdateStatusResult {

ERROR in ./node_modules/@tauri-apps/api/window.ts 92:0 Module parse failed: The keyword 'interface' is reserved (92:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | /* Allows you to retrieve information about a given monitor. /

interface Monitor { | /* Human-readable name of the monitor / | name: string | null

ERROR in ./src/components/about/license.html?raw 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|

Tongfang Utility

|

Ami Technology

ERROR in ./src/resources/images/frames/ava.webp 1:4 Module parse failed: Unexpected character '@' (1:4) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)

ERROR in ./src/resources/images/frames/bella.webp 1:5 Module parse failed: Unexpected character ':5) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)

ERROR in ./src/resources/images/frames/carol.webp 1:5 Module parse failed: Unexpected character '' (1:5) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)

ERROR in ./src/resources/images/frames/diana.webp 1:5 Module parse failed: Unexpected character '' (1:5) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)

ERROR in ./src/resources/images/frames/eileen.webp 1:4 Module parse failed: Unexpected character '' (1:4) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)

ERROR in ./src/resources/images/logos/iconfont.svg 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

ERROR in ./src/resources/images/logos/piave-cloud.svg 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

| |

webpack compiled with 24 errors WARNING in src/components/keyboard-light/index.tsx:178:6 react-hooks/exhaustive-deps: React Hook useCallback has a missing dependency: 'handleRustError'. Either include it or remove the dependency array. 176 | } 177 | })();

178 | }, [disabled, currentMode, fixedColorSeries, brightnessIndex, speedIndex]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 179 | 180 | const handleToggleKeyboardLight = (v: boolean) => { 181 | setDisabled(!v);

WARNING in src/components/update/index.tsx:69:6 react-hooks/exhaustive-deps: React Hook useEffect has a missing dependency: 'handleUpdate'. Either include it or remove the dependency array. 67 | }); 68 | }

69 | }, [update.requireUpdate, update.remoteAppBuild, update.remoteAppVersion]); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 70 | 71 | useEffect(() => { 72 | if (update.isRequestError) {

kirainmoe commented 2 years ago

Do not mix codes in different branches. Either use git checkout to switch branch or download a fresh copy.