Open MuhammedSaleem-Brej opened 2 months ago
../core/src/components/taskbar/menus/HomeMenu.tsx:134:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
134 </div>
../core/src/components/taskbar/menus/SearchMenu.tsx:1:20 - error TS2307: Cannot find module './SearchMenu.module.css' or its corresponding type declarations.
1 import styles from "./SearchMenu.module.css";
../core/src/components/taskbar/menus/SearchMenu.tsx:2:23 - error TS2307: Cannot find module './AppList.module.css' or its corresponding type declarations.
2 import appStyles from "./AppList.module.css";
../core/src/components/taskbar/menus/SearchMenu.tsx:4:75 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
4 import { ChangeEventHandler, MutableRefObject, useEffect, useState } from "react";
../core/src/components/taskbar/menus/SearchMenu.tsx:7:26 - error TS2307: Cannot find module 'react-svg' or its corresponding type declarations.
7 import { ReactSVG } from "react-svg";
../core/src/components/taskbar/menus/SearchMenu.tsx:71:9 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
71 return <div className={classNames.join(" ")}>
../core/src/components/taskbar/menus/SearchMenu.tsx:71:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
71 return <div className={classNames.join(" ")}>
72 <div className={useClassNames([styles.SearchMenu], "Taskbar", "Menu", "Search")}>
...
99 </div>
100 ;
../core/src/components/taskbar/menus/SearchMenu.tsx:72:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
72 <div className={useClassNames([styles.SearchMenu], "Taskbar", "Menu", "Search")}>
../core/src/components/taskbar/menus/SearchMenu.tsx:73:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
73
../core/src/components/taskbar/menus/SearchMenu.tsx:74:19 - error TS7031: Binding element 'name' implicitly has an 'any' type.
74 {apps?.map(({ name, id }) =>
../core/src/components/taskbar/menus/SearchMenu.tsx:74:25 - error TS7031: Binding element 'id' implicitly has an 'any' type.
74 {apps?.map(({ name, id }) =>
~~
../core/src/components/taskbar/menus/SearchMenu.tsx:75:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
75 <button
76 key={id}
... 82 }}
83 >
../core/src/components/taskbar/menus/SearchMenu.tsx:85:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
85
{name}
../core/src/components/taskbar/menus/SearchMenu.tsx:85:16 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
85 <p>{name}</p>
../core/src/components/taskbar/menus/SearchMenu.tsx:86:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
86
../core/src/components/taskbar/menus/SearchMenu.tsx:88:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
88 </div>
../core/src/components/taskbar/menus/SearchMenu.tsx:89:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
89 <input
90 ref={inputRef}
... 97 placeholder="Search..."
98 />
../core/src/components/taskbar/menus/SearchMenu.tsx:99:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
99
../core/src/components/taskbar/menus/SearchMenu.tsx:100:2 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
100 </div>;
../core/src/components/taskbar/menus/UtilMenu.tsx:1:27 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { ReactNode } from "react";
../core/src/components/taskbar/menus/UtilMenu.tsx:2:20 - error TS2307: Cannot find module './UtilMenu.module.css' or its corresponding type declarations.
2 import styles from "./UtilMenu.module.css";
../core/src/components/taskbar/menus/UtilMenu.tsx:23:10 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
23 return (<div className={classNames.join(" ")}>
../core/src/components/taskbar/menus/UtilMenu.tsx:23:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
23 return (<div className={classNames.join(" ")}>
24 <div className={useClassNames([styles.UtilMenu], "Taskbar", "Menu", modifiers)}>
...
26 </div>
27 );
../core/src/components/taskbar/menus/UtilMenu.tsx:24:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
24 <div className={useClassNames([styles.UtilMenu], "Taskbar", "Menu", modifiers)}>
../core/src/components/taskbar/menus/UtilMenu.tsx:26:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
26
../core/src/components/taskbar/menus/UtilMenu.tsx:27:2 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
27 </div>);
../core/src/components/windows/WindowFallbackView.tsx:1:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useEffect, useState } from "react";
../core/src/components/windows/WindowView.tsx:1:33 - error TS2307: Cannot find module '@fortawesome/react-fontawesome' or its corresponding type declarations.
1 import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
../core/src/components/windows/WindowView.tsx:2:20 - error TS2307: Cannot find module './WindowView.module.css' or its corresponding type declarations.
2 import styles from "./WindowView.module.css";
../core/src/components/windows/WindowView.tsx:3:107 - error TS2307: Cannot find module '@fortawesome/free-solid-svg-icons' or its corresponding type declarations.
3 import { faCircleRight, faExpand, faMinus, faWindowMaximize as fasWindowMaximize, faTimes, faXmark } from "@fortawesome/free-solid-svg-icons";
../core/src/components/windows/WindowView.tsx:5:23 - error TS2307: Cannot find module 'react-draggable' or its corresponding type declarations.
5 import Draggable from "react-draggable";
../core/src/components/windows/WindowView.tsx:6:89 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
6 import { CSSProperties, FC, memo, MouseEventHandler, useEffect, useRef, useState } from "react";
../core/src/components/windows/WindowView.tsx:8:34 - error TS2307: Cannot find module '@fortawesome/free-regular-svg-icons' or its corresponding type declarations.
8 import { faWindowMaximize } from "@fortawesome/free-regular-svg-icons";
../core/src/components/windows/WindowView.tsx:9:24 - error TS2307: Cannot find module '../../styles/utils.module.css' or its corresponding type declarations.
9 import utilStyles from "../../styles/utils.module.css";
../core/src/components/windows/WindowView.tsx:21:31 - error TS2307: Cannot find module 'react-error-boundary' or its corresponding type declarations.
21 import { ErrorBoundary } from "react-error-boundary";
../core/src/components/windows/WindowView.tsx:31:13 - error TS2503: Cannot find namespace 'React'.
31 setTitle?: React.Dispatch<React.SetStateAction<string>>;
../core/src/components/windows/WindowView.tsx:31:28 - error TS2503: Cannot find namespace 'React'.
31 setTitle?: React.Dispatch<React.SetStateAction
../core/src/components/windows/WindowView.tsx:32:15 - error TS2503: Cannot find namespace 'React'.
32 setIconUrl?: React.Dispatch<React.SetStateAction<string>>;
../core/src/components/windows/WindowView.tsx:32:30 - error TS2503: Cannot find namespace 'React'.
32 setIconUrl?: React.Dispatch<React.SetStateAction
../core/src/components/windows/WindowView.tsx:42:52 - error TS7031: Binding element 'id' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
~~
../core/src/components/windows/WindowView.tsx:42:56 - error TS7031: Binding element 'app' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
../core/src/components/windows/WindowView.tsx:42:61 - error TS7031: Binding element 'size' implicitly has an 'any' type.
42 export const WindowView: FC
../core/src/components/windows/WindowView.tsx:42:67 - error TS7031: Binding element 'position' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
../core/src/components/windows/WindowView.tsx:42:77 - error TS7031: Binding element 'onInteract' implicitly has an 'any' type.
42 export const WindowView: FC
../core/src/components/windows/WindowView.tsx:42:89 - error TS7031: Binding element 'options' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
../core/src/components/windows/WindowView.tsx:42:98 - error TS7031: Binding element 'active' implicitly has an 'any' type.
42 export const WindowView: FC
../core/src/components/windows/WindowView.tsx:42:106 - error TS7031: Binding element 'fullscreen' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
../core/src/components/windows/WindowView.tsx:42:118 - error TS7031: Binding element 'minimized' implicitly has an 'any' type.
42 export const WindowView: FC
../core/src/components/windows/WindowView.tsx:42:129 - error TS7031: Binding element 'toggleMinimized' implicitly has an 'any' type.
42 export const WindowView: FC<WindowProps> = memo(({ id, app, size, position, onInteract, options, active, fullscreen, minimized, toggleMinimized, index }) => {
../core/src/components/windows/WindowView.tsx:42:146 - error TS7031: Binding element 'index' implicitly has an 'any' type.
42 export const WindowView: FC
../core/src/components/windows/WindowView.tsx:55:74 - error TS7006: Parameter 'props' implicitly has an 'any' type.
55 const { onContextMenu, ShortcutsListener } = useContextMenu({ Actions: (props) =>
../core/src/components/windows/WindowView.tsx:138:10 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
138 return (<div style={{ zIndex, position: !maximized ? "relative" : null } as CSSProperties}>
../core/src/components/windows/WindowView.tsx:138:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
138 return (<div style={{ zIndex, position: !maximized ? "relative" : null } as CSSProperties}>
139
...
228 </Draggable>
229 );
../core/src/components/windows/WindowView.tsx:156:14 - error TS7006: Parameter 'event' implicitly has an 'any' type.
156 onStart={(event) => { focus(event as Event); }}
../core/src/components/windows/WindowView.tsx:159:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
159 <div
160 className={useClassNames(classNames, "WindowView")}
... 162 onClick={focus as unknown as MouseEventHandler}
163 >
../core/src/components/windows/WindowView.tsx:164:5 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
164 <div
165 className={styles["Window-inner"]}
... 169 }}
170 >
../core/src/components/windows/WindowView.tsx:171:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
171 <div
172 className={useClassNames([styles.Header, "Window-handle"], "WindowHeader")}
... 177 }}
178 >
../core/src/components/windows/WindowView.tsx:174:23 - error TS7006: Parameter 'event' implicitly has an 'any' type.
174 onDoubleClick={(event) => {
../core/src/components/windows/WindowView.tsx:183:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
183 <p className={useClassNames([utilStyles.TextSemibold], "WindowTitle")}>{title}</p>
../core/src/components/windows/WindowView.tsx:183:85 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
183 <p className={useClassNames([utilStyles.TextSemibold], "WindowTitle")}>{title}
../core/src/components/windows/WindowView.tsx:184:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
184 <button aria-label="Minimize" className={styles["Header-button"]} tabIndex={0} id="minimize-window"
185 onClick={toggleMinimized as MouseEventHandler}
186 >
../core/src/components/windows/WindowView.tsx:188:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
188
../core/src/components/windows/WindowView.tsx:191:10 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
191 ? <button aria-label="Maximize" className={styles["Header-button"]} tabIndex={0} id="maximize-window"
192 onClick={(event) => {
...
196 }}
197 >
../core/src/components/windows/WindowView.tsx:192:19 - error TS7006: Parameter 'event' implicitly has an 'any' type.
192 onClick={(event) => {
../core/src/components/windows/WindowView.tsx:199:8 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
199
../core/src/components/windows/WindowView.tsx:202:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
202 <button aria-label="Close" className={`${styles["Header-button"]} ${styles["Exit-button"]}`} tabIndex={0} id="close-window"
203 onClick={close as unknown as MouseEventHandler}>
../core/src/components/windows/WindowView.tsx:205:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
205 </button>
../core/src/components/windows/WindowView.tsx:206:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
206
../core/src/components/windows/WindowView.tsx:207:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
207 <div className={useClassNames([styles["Window-content"]], "WindowContent")}>
../core/src/components/windows/WindowView.tsx:209:28 - error TS7006: Parameter 'props' implicitly has an 'any' type.
209 FallbackComponent={(props) => <WindowFallbackView app={app} closeWindow={close} {...props}/>}
../core/src/components/windows/WindowView.tsx:210:18 - error TS7006: Parameter 'error' implicitly has an 'any' type.
210 onError={(error) => {
../core/src/components/windows/WindowView.tsx:225:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
225
../core/src/components/windows/WindowView.tsx:226:5 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
226 </div>
../core/src/components/windows/WindowView.tsx:227:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
227
../core/src/components/windows/WindowView.tsx:229:2 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
229 </div>);
../core/src/components/windows/WindowsView.tsx:1:47 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, memo, useEffect, useState } from "react";
../core/src/components/windows/WindowsView.tsx:65:10 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
65 return (<div className={useClassNames([], "WindowsView")}>
../core/src/components/windows/WindowsView.tsx:65:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
65 return (<div className={useClassNames([], "WindowsView")}>
66 {windows?.map((window: WindowProps) => {
... 87 })}
88 </div>);
../core/src/components/windows/WindowsView.tsx:88:2 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
88 );
../core/src/features/_utils/browser.utils.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { HTMLAttributeAnchorTarget } from "react";
../core/src/features/apps/app.tsx:3:20 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
3 import { FC } from "react";
../core/src/features/apps/app.tsx:87:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
87 return <this.windowContent {...props}/>;
../core/src/features/modals/modal.ts:1:20 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC } from "react";
../core/src/features/modals/modalsManager.ts:1:34 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { MutableRefObject } from "react";
../core/src/features/system/systemManager.ts:2:22 - error TS2307: Cannot find module '@prozilla-os/skins' or its corresponding type declarations.
2 import { Skin } from "@prozilla-os/skins";
../core/src/features/tracking/trackingManager.ts:1:21 - error TS2307: Cannot find module 'react-ga4' or its corresponding type declarations.
1 import ReactGA from "react-ga4";
../core/src/features/tracking/trackingManager.ts:2:32 - error TS2307: Cannot find module 'react-ga4/types/ga4' or its corresponding type declarations.
2 import { UaEventOptions } from "react-ga4/types/ga4";
../core/src/hooks/_utils/classNames.ts:1:25 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useMemo } from "react";
../core/src/hooks/_utils/history.ts:1:26 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useState } from "react";
../core/src/hooks/_utils/keyboard.ts:1:50 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useCallback, useEffect, useState } from "react";
../core/src/hooks/_utils/mouse.ts:1:27 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useEffect } from "react";
../core/src/hooks/_utils/outsideClick.tsx:1:52 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useRef, useEffect, memo, ReactNode } from "react";
../core/src/hooks/_utils/outsideClick.tsx:32:9 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
32 return
../core/src/hooks/_utils/outsideClick.tsx:32:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
32 return <div ref={wrapperRef}>{children}</div>;
../core/src/hooks/_utils/outsideClick.tsx:32:41 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
32 return
../core/src/hooks/_utils/screen.ts:1:50 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { Ref, useEffect, useRef, useState } from "react";
../core/src/hooks/_utils/scrollWithShadows.ts:6:58 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
6 import { MutableRefObject, useCallback, useEffect } from "react";
../core/src/hooks/_utils/scrollWithShadows.ts:7:26 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
7 import { useState } from "react";
../core/src/hooks/apps/appFolder.ts:1:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useEffect, useState } from "react";
../core/src/hooks/modals/alert.tsx:1:29 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useCallback } from "react";
../core/src/hooks/modals/alert.tsx:25:5 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
25 <DialogBox {...props}>
26 <p>{text}</p>
27
28 </DialogBox>
../core/src/hooks/modals/alert.tsx:26:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
26
{text}
../core/src/hooks/modals/alert.tsx:26:15 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
26 <p>{text}</p>
../core/src/hooks/modals/alert.tsx:27:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
27
../core/src/hooks/modals/alert.tsx:27:74 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
27 <button data-type={ModalsConfig.DIALOG_CONTENT_TYPES.CloseButton}>Ok</button>
../core/src/hooks/modals/contextMenu.tsx:1:45 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, MouseEvent, useCallback } from "react";
../core/src/hooks/modals/contextMenu.tsx:44:34 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
44 const ShortcutsListener = () => <Actions mode={ActionsManager.MODES.shortcutsListener}/>;
../core/src/hooks/modals/modalsContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/modals/modalsManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/modals/modalsManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/modals/modalsManagerProvider.tsx:6:70 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const ModalsManagerProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/modals/modalsManagerProvider.tsx:10:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
10
11 <ModalsProvider modalsManager={modalsManager}>
... 13
14 </modalsManagerContext.Provider>
../core/src/hooks/modals/modalsProvider.tsx:1:54 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode, useCallback, useState } from "react";
../core/src/hooks/modals/modalsProvider.tsx:6:93 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const ModalsProvider: FC<{ children: ReactNode, modalsManager: ModalsManager }> = ({ children, modalsManager }) => {
../core/src/hooks/modals/modalsProvider.tsx:6:103 - error TS7031: Binding element 'modalsManager' implicitly has an 'any' type.
6 export const ModalsProvider: FC<{ children: ReactNode, modalsManager: ModalsManager }> = ({ children, modalsManager }) => {
../core/src/hooks/modals/modalsProvider.tsx:16:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
16 <ModalsContext.Provider value={modals}>
17 {children}
18 </ModalsContext.Provider>
../core/src/hooks/modals/windowedModal.ts:1:33 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, useCallback } from "react";
../core/src/hooks/modals/windowedModal.ts:23:69 - error TS7031: Binding element 'WindowedModal' implicitly has an 'any' type.
23 const openWindowedModal = useCallback<OpenWindowedModal>(({ Modal: WindowedModal, ...params }) => {
../core/src/hooks/settings/settingsManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/settings/settingsManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/settings/settingsManagerProvider.tsx:6:72 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const SettingsManagerProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/settings/settingsManagerProvider.tsx:12:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
12 <SettingsManagerContext.Provider value={settingsManager}>
13 {children}
14 </SettingsManagerContext.Provider>
../core/src/hooks/system/systemManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/system/systemManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/system/systemManagerProvider.tsx:19:71 - error TS7006: Parameter 'props' implicitly has an 'any' type.
19 export const SystemManagerProvider: FC
../core/src/hooks/system/systemManagerProvider.tsx:23:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
23 return <SystemManagerContext.Provider value={systemManager}>
24 {children}
25 </SystemManagerContext.Provider>;
../core/src/hooks/themes/themes.tsx:1:51 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { ReactElement, useEffect, useState } from "react";
../core/src/hooks/themes/themes.tsx:19:9 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
19 return <div className={`${THEMES[theme ?? 0]}-theme`}>
../core/src/hooks/themes/themes.tsx:19:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
19 return <div className={${THEMES[theme ?? 0]}-theme
}>
20 {children}
21 ;
../core/src/hooks/themes/themes.tsx:21:2 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
21 </div>;
../core/src/hooks/tracking/trackingManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/tracking/trackingManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/tracking/trackingManagerProvider.tsx:6:72 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const TrackingManagerProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/tracking/trackingManagerProvider.tsx:10:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
10 return <TrackingManagerContext.Provider value={trackingManager}>
11 {children}
12 </TrackingManagerContext.Provider>;
../core/src/hooks/virtual-drive/virtualRootContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/virtual-drive/virtualRootProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/virtual-drive/virtualRootProvider.tsx:6:68 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const VirtualRootProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/virtual-drive/virtualRootProvider.tsx:10:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
10 return <VirtualRootContext.Provider value={virtualRoot}>
11 {children}
12 </VirtualRootContext.Provider>;
../core/src/hooks/windows/windowsContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/windows/windowsManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/windows/windowsManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/windows/windowsManagerProvider.tsx:8:71 - error TS7031: Binding element 'children' implicitly has an 'any' type.
8 export const WindowsManagerProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/windows/windowsManagerProvider.tsx:18:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
18
19 <WindowsProvider windowsManager={windowsManager}>
... 21
22 </WindowsManagerContext.Provider>
../core/src/hooks/windows/windowsProvider.tsx:1:54 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode, useCallback, useState } from "react";
../core/src/hooks/windows/windowsProvider.tsx:6:96 - error TS7031: Binding element 'children' implicitly has an 'any' type.
6 export const WindowsProvider: FC<{ children: ReactNode, windowsManager: WindowsManager }> = ({ children, windowsManager }) => {
../core/src/hooks/windows/windowsProvider.tsx:6:106 - error TS7031: Binding element 'windowsManager' implicitly has an 'any' type.
6 export const WindowsProvider: FC<{ children: ReactNode, windowsManager: WindowsManager }> = ({ children, windowsManager }) => {
../core/src/hooks/windows/windowsProvider.tsx:16:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
16 <WindowsContext.Provider value={windows}>
17 {children}
18 </WindowsContext.Provider>
../core/src/hooks/z-index/zIndex.ts:1:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useEffect, useState } from "react";
../core/src/hooks/z-index/zIndexManagerContext.ts:1:43 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { createContext, useContext } from "react";
../core/src/hooks/z-index/zIndexManagerProvider.tsx:1:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { FC, ReactNode } from "react";
../core/src/hooks/z-index/zIndexManagerProvider.tsx:5:70 - error TS7031: Binding element 'children' implicitly has an 'any' type.
5 export const ZIndexManagerProvider: FC<{ children: ReactNode }> = ({ children }) => {
../core/src/hooks/z-index/zIndexManagerProvider.tsx:8:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
8 return
9 {children}
10 </ZIndexManagerContext.Provider>;
../core/src/styles/index.ts:1:39 - error TS2307: Cannot find module './utils.module.css' or its corresponding type declarations.
1 export { default as utilStyles } from "./utils.module.css";
../core/src/types/vite-env.d.ts:1:23 - error TS2688: Cannot find type definition file for 'vite/client'.
1 ///
src/main.ts:1:15 - error TS2307: Cannot find module '@prozilla-os/core' or its corresponding type declarations.
1 export * from "@prozilla-os/core";
src/main.ts:2:15 - error TS2307: Cannot find module '@prozilla-os/file-explorer' or its corresponding type declarations.
2 export * from "@prozilla-os/file-explorer";
src/main.ts:3:15 - error TS2307: Cannot find module '@prozilla-os/terminal' or its corresponding type declarations.
3 export * from "@prozilla-os/terminal";
src/main.ts:4:15 - error TS2307: Cannot find module '@prozilla-os/text-editor' or its corresponding type declarations.
4 export * from "@prozilla-os/text-editor";
src/main.ts:5:15 - error TS2307: Cannot find module '@prozilla-os/settings' or its corresponding type declarations.
5 export * from "@prozilla-os/settings";
src/main.ts:6:15 - error TS2307: Cannot find module '@prozilla-os/media-viewer' or its corresponding type declarations.
6 export * from "@prozilla-os/media-viewer";
src/main.ts:7:15 - error TS2307: Cannot find module '@prozilla-os/browser' or its corresponding type declarations.
7 export * from "@prozilla-os/browser";
src/main.ts:8:15 - error TS2307: Cannot find module '@prozilla-os/calculator' or its corresponding type declarations.
8 export * from "@prozilla-os/calculator";
src/types/vite-env.d.ts:1:23 - error TS2688: Cannot find type definition file for 'vite/client'.
1 /// <reference types="vite/client" />
vite.config.ts:1:30 - error TS2307: Cannot find module 'vite' or its corresponding type declarations.
1 import { defineConfig } from "vite";
vite.config.ts:2:25 - error TS2307: Cannot find module 'path' or its corresponding type declarations.
2 import { resolve } from "path";
vite.config.ts:3:19 - error TS2307: Cannot find module '@vitejs/plugin-react-swc' or its corresponding type declarations.
3 import react from "@vitejs/plugin-react-swc";
vite.config.ts:4:17 - error TS2307: Cannot find module 'vite-plugin-dts' or its corresponding type declarations.
4 import dts from "vite-plugin-dts";
vite.config.ts:5:30 - error TS2307: Cannot find module 'vite-plugin-lib-inject-css' or its corresponding type declarations.
5 import { libInjectCss } from "vite-plugin-lib-inject-css";
vite.config.ts:24:19 - error TS2304: Cannot find name '__dirname'.
24 entry: resolve(__dirname, "src/main.ts"),
Found 1009 errors in 138 files.
Errors Files
24 ../apps/browser/src/components/Browser.tsx:1
1 ../apps/browser/src/main.ts:1
24 ../apps/calculator/src/components/Calculator.tsx:1
1 ../apps/calculator/src/main.ts:1
59 ../apps/file-explorer/src/components/FileExplorer.tsx:1
10 ../apps/file-explorer/src/components/ImportButton.tsx:1
7 ../apps/file-explorer/src/components/QuickAccessButton.tsx:1
27 ../apps/file-explorer/src/components/modals/file-properties/FileProperties.tsx:1
1 ../apps/file-explorer/src/main.ts:1
1 ../apps/file-explorer/src/types/vite-env.d.ts:1
7 ../apps/logic-sim/src/components/CircuitView.tsx:1
5 ../apps/logic-sim/src/components/LogicSim.tsx:1
1 ../apps/logic-sim/src/core/chips/chip.ts:4
4 ../apps/logic-sim/src/core/chips/chipsManager.ts:7
1 ../apps/logic-sim/src/core/circuit.ts:1
1 ../apps/logic-sim/src/core/inputHandler.ts:7
1 ../apps/logic-sim/src/core/pins/controlledPin.ts:1
1 ../apps/logic-sim/src/core/pins/pin.ts:1
1 ../apps/logic-sim/src/core/wires/wire.ts:1
1 ../apps/logic-sim/src/main.ts:1
13 ../apps/media-viewer/src/components/MediaViewer.tsx:1
1 ../apps/media-viewer/src/main.ts:1
16 ../apps/settings/src/components/Settings.tsx:1
11 ../apps/settings/src/components/tabs/AboutSettings.tsx:1
13 ../apps/settings/src/components/tabs/AppOption.tsx:1
27 ../apps/settings/src/components/tabs/AppearanceSettings.tsx:1
13 ../apps/settings/src/components/tabs/AppsSettings.tsx:1
17 ../apps/settings/src/components/tabs/StorageSettings.tsx:1
1 ../apps/settings/src/main.ts:1
4 ../apps/terminal/src/components/Ansi.tsx:1
13 ../apps/terminal/src/components/InputLine.tsx:1
7 ../apps/terminal/src/components/OutputLine.tsx:1
23 ../apps/terminal/src/components/Terminal.tsx:1
1 ../apps/terminal/src/constants/terminal.const.ts:1
1 ../apps/terminal/src/core/_utils/terminal.utils.ts:1
1 ../apps/terminal/src/core/command.ts:1
2 ../apps/terminal/src/core/commands.ts:6
1 ../apps/terminal/src/core/commands/cat.ts:1
2 ../apps/terminal/src/core/commands/cmatrix.ts:1
3 ../apps/terminal/src/core/commands/dir.ts:9
1 ../apps/terminal/src/core/commands/fortune.ts:1
1 ../apps/terminal/src/core/commands/help.ts:1
1 ../apps/terminal/src/core/commands/lolcat.ts:1
3 ../apps/terminal/src/core/commands/ls.ts:1
1 ../apps/terminal/src/core/commands/man.ts:1
1 ../apps/terminal/src/core/commands/neofetch.ts:1
1 ../apps/terminal/src/core/commands/reboot.ts:1
1 ../apps/terminal/src/core/commands/rm.ts:1
1 ../apps/terminal/src/core/commands/sl.ts:213
1 ../apps/terminal/src/core/commands/touch.ts:1
1 ../apps/terminal/src/core/commands/whatis.ts:1
4 ../apps/terminal/src/core/stream.ts:1
1 ../apps/terminal/src/main.ts:1
20 ../apps/text-editor/src/components/TextEditor.tsx:1
19 ../apps/text-editor/src/components/overrides/MarkdownBlockquote.tsx:2
4 ../apps/text-editor/src/components/overrides/MarkdownImage.tsx:1
13 ../apps/text-editor/src/components/overrides/MarkdownLink.tsx:1
1 ../apps/text-editor/src/main.ts:1
10 ../core/src/components/_utils/button/Button.tsx:1
16 ../core/src/components/_utils/directory-list/DirectoryList.tsx:1
6 ../core/src/components/_utils/directory-list/ImagePreview.tsx:1
15 ../core/src/components/_utils/dropdown-button/DropdownButton.tsx:1
4 ../core/src/components/_utils/header-menu/HeaderMenu.tsx:1
4 ../core/src/components/_utils/interactable/Interactable.tsx:1
6 ../core/src/components/_utils/progress-bar/ProgressBar.tsx:1
12 ../core/src/components/_utils/vector-image/VectorImage.tsx:2
7 ../core/src/components/_utils/web-view/WebView.tsx:1
6 ../core/src/components/actions/Actions.tsx:1
15 ../core/src/components/actions/actions/ClickAction.tsx:1
3 ../core/src/components/actions/actions/Divider.tsx:1
17 ../core/src/components/actions/actions/DropdownAction.tsx:1
19 ../core/src/components/actions/actions/RadioAction.tsx:1
5 ../core/src/components/actions/actions/TextDisplay.tsx:1
17 ../core/src/components/actions/actions/ToggleAction.tsx:1
25 ../core/src/components/desktop/Desktop.tsx:1
7 ../core/src/components/modals/ModalView.tsx:1
6 ../core/src/components/modals/ModalsView.tsx:1
18 ../core/src/components/modals/_utils/WindowedModal.tsx:1
4 ../core/src/components/modals/dialog-box/DialogBox.tsx:4
2 ../core/src/components/modals/file-selector/FileSelector.tsx:1
8 ../core/src/components/modals/share/Option.tsx:1
44 ../core/src/components/modals/share/Share.tsx:1
6 ../core/src/components/prozilla-os/Main.tsx:1
5 ../core/src/components/prozilla-os/ProzillaOS.tsx:1
28 ../core/src/components/taskbar/Taskbar.tsx:1
8 ../core/src/components/taskbar/app-icon/AppIcon.tsx:1
12 ../core/src/components/taskbar/indicators/Battery.tsx:1
14 ../core/src/components/taskbar/indicators/Calendar.tsx:1
10 ../core/src/components/taskbar/indicators/Network.tsx:1
10 ../core/src/components/taskbar/indicators/Volume.tsx:1
46 ../core/src/components/taskbar/menus/HomeMenu.tsx:1
18 ../core/src/components/taskbar/menus/SearchMenu.tsx:1
7 ../core/src/components/taskbar/menus/UtilMenu.tsx:1
1 ../core/src/components/windows/WindowFallbackView.tsx:1
48 ../core/src/components/windows/WindowView.tsx:1
4 ../core/src/components/windows/WindowsView.tsx:1
1 ../core/src/features/_utils/browser.utils.ts:1
2 ../core/src/features/apps/app.tsx:3
1 ../core/src/features/modals/modal.ts:1
1 ../core/src/features/modals/modalsManager.ts:1
1 ../core/src/features/system/systemManager.ts:2
2 ../core/src/features/tracking/trackingManager.ts:1
1 ../core/src/hooks/_utils/classNames.ts:1
1 ../core/src/hooks/_utils/history.ts:1
1 ../core/src/hooks/_utils/keyboard.ts:1
1 ../core/src/hooks/_utils/mouse.ts:1
4 ../core/src/hooks/_utils/outsideClick.tsx:1
1 ../core/src/hooks/_utils/screen.ts:1
2 ../core/src/hooks/_utils/scrollWithShadows.ts:6
1 ../core/src/hooks/apps/appFolder.ts:1
6 ../core/src/hooks/modals/alert.tsx:1
2 ../core/src/hooks/modals/contextMenu.tsx:1
1 ../core/src/hooks/modals/modalsContext.ts:1
1 ../core/src/hooks/modals/modalsManagerContext.ts:1
3 ../core/src/hooks/modals/modalsManagerProvider.tsx:1
4 ../core/src/hooks/modals/modalsProvider.tsx:1
2 ../core/src/hooks/modals/windowedModal.ts:1
1 ../core/src/hooks/settings/settingsManagerContext.ts:1
3 ../core/src/hooks/settings/settingsManagerProvider.tsx:1
1 ../core/src/hooks/system/systemManagerContext.ts:1
3 ../core/src/hooks/system/systemManagerProvider.tsx:1
4 ../core/src/hooks/themes/themes.tsx:1
1 ../core/src/hooks/tracking/trackingManagerContext.ts:1
3 ../core/src/hooks/tracking/trackingManagerProvider.tsx:1
1 ../core/src/hooks/virtual-drive/virtualRootContext.ts:1
3 ../core/src/hooks/virtual-drive/virtualRootProvider.tsx:1
1 ../core/src/hooks/windows/windowsContext.ts:1
1 ../core/src/hooks/windows/windowsManagerContext.ts:1
3 ../core/src/hooks/windows/windowsManagerProvider.tsx:1
4 ../core/src/hooks/windows/windowsProvider.tsx:1
1 ../core/src/hooks/z-index/zIndex.ts:1
1 ../core/src/hooks/z-index/zIndexManagerContext.ts:1
3 ../core/src/hooks/z-index/zIndexManagerProvider.tsx:1
1 ../core/src/styles/index.ts:1
1 ../core/src/types/vite-env.d.ts:1
8 src/main.ts:1
1 src/types/vite-env.d.ts:1
6 vite.config.ts:1
ELIFECYCLE Command failed with exit code 1.
WARN Local package.json exists, but node_modules missing, did you mean to install?
root@localhost:~/Downloads/x/ProzillaOS-main/packages/prozilla-os#
Could you please add all the steps you took to get this error? It looks like you're trying to execute the build script inside a compiled version of ProzillaOS, instead of its source code.
Yes, that's correct. I did this initially by mistake, but I edited the comment later. The steps I followed: I cloned the project from the GitHub repository. Then I navigated to the packages/prozilla-os
directory. After that, I executed the following command: pnpm build
.
Please post your errors as code blocks otherwise the formatting gets messed up and the entire thing becomes unreadable. Also please preserve your original comment when editing so future viewers of this issue know the whole context. It looks like you are encountering that issue because you forgot to run pnpm install
, which is essential to the project.
You're right, I hadn't installed the package before. The steps I took after cloning the project from GitHub are as follows:
root@localhost:~/Downloads/x# cd Pro*
root@localhost:~/Downloads/x/ProzillaOS-main# pnpm install
Summary of the result I got:
Done in 10.1s
Next step:
root@localhost:~/Downloads/x/ProzillaOS-main# pnpm run packages:build
The result I got is as follows:
@prozilla-os/monorepo@ packages:build /root/Downloads/x/ProzillaOS-main
> pnpm -r --sequential --filter prozilla-os... build
Scope: 11 of 15 workspace projects
> @prozilla-os/shared@1.1.1 build /root/Downloads/x/ProzillaOS-main/packages/shared
> tsc && vite build
^[[1;3B^[[1;3A^[[1;3B^[[1;3B^[[1;3A^[[1;3A^[[1;3B^[[1;3B^[[1;3A^[[1;3Avite v5.3.1 building for production...
✓ 3 modules transformed.
[vite:dts] Start generate declaration files...
dist/main.js 1.00 kB │ gzip: 0.53 kB │ map: 2.36 kB
[vite:dts] Start rollup declaration files...
Analysis will use the bundled TypeScript version 5.4.2
^[[1;3B^[[1;3B^[[1;3A^[[1;3A[vite:dts] Declaration files built in 27668ms.
✓ built in 27.95s
> @prozilla-os/skins@1.1.2 build /root/Downloads/x/ProzillaOS-main/packages/skins
> tsc && vite build
^[[1;3B^[[1;3B^[[1;3A^[[1;3A^[[1;3B^[[1;3B^[[1;3A^[[1;3A^[[1;3B^[[1;3B^[[1;3A^[[1;3Afailed to load config from /root/Downloads/x/ProzillaOS-main/packages/skins/vite.config.ts
error during build:
Error: /root/Downloads/x/ProzillaOS-main/node_modules/@ast-grep/napi-linux-arm64-gnu/ast-grep-napi.linux-arm64-gnu.node: undefined symbol: static_assert
at Module._extensions..node (node:internal/modules/cjs/loader:1454:18)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/root/Downloads/x/ProzillaOS-main/node_modules/@ast-grep/napi/index.js:219:31)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
/root/Downloads/x/ProzillaOS-main/packages/skins:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @prozilla-os/skins@1.1.2 build: `tsc && vite build`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
root@localhost:~/Downloads/x/ProzillaOS-main#
Looks like you are trying to run this on Linux, could you please post the specifications of your device/system and what version of node are you using (node -v
)?
Edit: What happens when you try to run another command like pnpm start
?
Edit 2: I think you might be able to fix this issue by changing line 25 in “packages/skins/vite.config.ts” to external: ["react", "react/jsx-runtime", “path”],
.
Operating system: "Debian GNU/Linux 11 (bullseye)" CPU architecture: aarch64 AVAILABLE RAM: 3GB Node version: v20.14.0 When I ran the command "pnpm start" the project worked successfully Aftter changing line 25 in packages/skinns/vite.config.ts I have got the same output.
Just tested on Ubuntu 22.04.3 LTS on Windows 10 x86_64 and it works fine. I'll try to test on Debian later as well.
Node: v18.12.0
Seems to be caused by the subdependency @ast-grep/napi-linux-arm64-gnu
of the dependency vite-plugin-lib-inject-css
, as you can see in the dependency tree below:
A possible solution would be to fork this plugin and rewrite it without depending on @ast-grep
.
Hey @MuhammedSaleem-Brej, are you still encountering this issue in the latest version?
After running "pnpm run packages:build" I have got this output.
Error: /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11/node_modules/@ast-grep/napi-linux-arm64-gnu/ast-grep-napi.linux-arm64-gnu.node: undefined symbol: static_asser
t
at Module._extensions..node (node:internal/modules/cjs/loader:1454:18)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.
Comment:
I encountered an error related to the static_assert symbol when attempting to build the project. The error message shows that the symbol static_asser\nt is not defined properly. I tried to correct the name, but it's difficult because the file is in a binary format (*.node), which cannot be edited directly as text.
Would appreciate any guidance or a fix for this issue.
@MuhammedSaleem-Brej, have you tried running "pnpm install --fix-lockfile"?
Unfortunately even after I entered the command you suggested I got the same error. `root@localhost:~/Downloads/x/ProzillaOS-prozilla-os-1.3.11# pnpm run packages:build
@prozilla-os/monorepo@ packages:build /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11 pnpm -r --sequential --filter "@prozilla-os/demo^..." build
Scope: 14 of 18 workspace projects
@prozilla-os/shared@1.2.0 build /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11/packages/shared tsc && vite build
vite v5.4.8 building for production... ✓ 10 modules transformed.
[vite:dts] Start generate declaration files... dist/main.js 3.21 kB │ gzip: 1.43 kB │ map: 8.82 kB [vite:dts] Start rollup declaration files... Analysis will use the bundled TypeScript version 5.4.2 *** The target project appears to use TypeScript 5.5.4 which is newer than the bundled compiler engine; consider upgrading API Extractor. [vite:dts] Declaration files built in 26731ms.
✓ built in 27.24s
@prozilla-os/skins@1.1.8 build /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11/packages/skins tsc && vite build
failed to load config from /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11/packages/skins/vite.config.ts
error during build:
Error: /root/Downloads/x/ProzillaOS-prozilla-os-1.3.11/node_modules/@ast-grep/napi-linux-arm64-gnu/ast-grep-napi.linux-arm64-gnu.node: undefined symbol: static_asser
t
at Module._extensions..node (node:internal/modules/cjs/loader:1454:18)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.tsc && vite build
Exit status 1
ELIFECYCLE Command failed with exit code 1.
root@localhost:~/Downloads/x/ProzillaOS-prozilla-os-1.3.11#`
../core/src/components/taskbar/indicators/Battery.tsx:105:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
105
../core/src/components/taskbar/indicators/Battery.tsx:112:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
112
{Math.round(percentage)}%
../core/src/components/taskbar/indicators/Calendar.tsx:1:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
1 import { useEffect, useState } from "react";
../core/src/components/taskbar/indicators/Calendar.tsx:39:9 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
39 return <OutsideClickListener onOutsideClick={() => { updateShowMenu(false); }}>
70 ;
../core/src/components/taskbar/indicators/Calendar.tsx:47:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
47
../core/src/components/taskbar/indicators/Calendar.tsx:54:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
54
../core/src/components/taskbar/indicators/Calendar.tsx:56:4 - error TS2741: Property 'children' is missing in type '{ active: any; setActive: any; className: any; }' but required in type 'UtilMenuProps'.
56
../core/src/components/taskbar/indicators/Calendar.tsx:57:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
57
{date.toLocaleString("en-GB", {
../core/src/components/taskbar/indicators/Calendar.tsx:63:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists .
63
{date.toLocaleString("en-GB", {
../core/src/components/taskbar/indicators/Network.tsx:1:24 - error TS2307: Cannot find module '@fortawesome/free-solid-svg-icons' or its corresponding type declarati ons.
1 import { faWifi } from "@fortawesome/free-solid-svg-icons";
../core/src/components/taskbar/indicators/Network.tsx:3:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
3 import { useEffect, useState } from "react";
../core/src/components/taskbar/indicators/Network.tsx:30:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
30 return (<OutsideClickListener onOutsideClick={() => { updateShowMenu(false); }}>
... 37
../core/src/components/taskbar/indicators/Network.tsx:31:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
31 <button title="Network" className={useClassNames([], "Taskbar", "Indicator", "Network")} tabIndex={0} onClick={() => { updateShowMenu(!showMenu); }}>
../core/src/components/taskbar/indicators/Network.tsx:34:4 - error TS2741: Property 'children' is missing in type '{ active: any; setActive: any; className: any; }' but required in type 'UtilMenuProps'.
34
../core/src/components/taskbar/indicators/Network.tsx:36:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
36
Connected
../core/src/components/taskbar/indicators/Volume.tsx:1:30 - error TS2307: Cannot find module '@fortawesome/free-solid-svg-icons' or its corresponding type declaratio ns.
1 import { faVolumeHigh } from "@fortawesome/free-solid-svg-icons";
../core/src/components/taskbar/indicators/Volume.tsx:3:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
3 import { useEffect, useState } from "react";
../core/src/components/taskbar/indicators/Volume.tsx:30:10 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
30 return (<OutsideClickListener onOutsideClick={() => { updateShowMenu(false); }}>
... 37
../core/src/components/taskbar/indicators/Volume.tsx:31:3 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
31 <button title="Volume" className={useClassNames([], "Taskbar", "Indicator", "Volume")} tabIndex={0} onClick={() => { updateShowMenu(!showMenu); }}>
../core/src/components/taskbar/indicators/Volume.tsx:34:4 - error TS2741: Property 'children' is missing in type '{ active: any; setActive: any; className: any; }' b ut required in type 'UtilMenuProps'.
34
../core/src/components/taskbar/indicators/Volume.tsx:36:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
36
100%
../core/src/components/taskbar/menus/HomeMenu.tsx:1:33 - error TS2307: Cannot find module '@fortawesome/react-fontawesome' or its corresponding type declarations.
1 import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
../core/src/components/taskbar/menus/HomeMenu.tsx:3:23 - error TS2307: Cannot find module './AppList.module.css' or its corresponding type declarations.
3 import appStyles from "./AppList.module.css";
../core/src/components/taskbar/menus/HomeMenu.tsx:5:72 - error TS2307: Cannot find module '@fortawesome/free-solid-svg-icons' or its corresponding type declarations.
5 import { faCircleInfo, faFileLines, faGear, faImage, faPowerOff } from "@fortawesome/free-solid-svg-icons";
../core/src/components/taskbar/menus/HomeMenu.tsx:7:37 - error TS2307: Cannot find module 'react' or its corresponding type declarations.
7 import { useEffect, useState } from "react";
../core/src/components/taskbar/menus/HomeMenu.tsx:64:3 - error TS2307: Cannot find module 'react/jsx-runtime' or its corresponding type declarations.
64 <div className={classNames.join(" ")}>
... 133
../core/src/components/taskbar/menus/HomeMenu.tsx:65:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
65 <div className={useClassNames([styles.HomeMenu, taskbarStyles.Menu], "Taskbar", "Menu", "Home")}>
../core/src/components/taskbar/menus/HomeMenu.tsx:67:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
67 <button tabIndex={tabIndex} onClick={() => { closeViewport(true, systemName); }}>
../core/src/components/taskbar/menus/HomeMenu.tsx:69:54 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
69
Shut down
../core/src/components/taskbar/menus/HomeMenu.tsx:72:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
72 <button tabIndex={tabIndex} onClick={() => {
74 windowsManager?.open("settings");
../core/src/components/taskbar/menus/HomeMenu.tsx:77:8 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
77
Settings
../core/src/components/taskbar/menus/HomeMenu.tsx:78:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
78
82 setActive(false);
88 }}>
../core/src/components/taskbar/menus/HomeMenu.tsx:90:50 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
90
Info
../core/src/components/taskbar/menus/HomeMenu.tsx:94:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
94 <button tabIndex={tabIndex} onClick={() => {
96 windowsManager?.open(fileExplorerApp.id, { path: "~/Pictures" });
../core/src/components/taskbar/menus/HomeMenu.tsx:99:8 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
99
Images
../core/src/components/taskbar/menus/HomeMenu.tsx:100:7 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
100
102 setActive(false);
104 }>
../core/src/components/taskbar/menus/HomeMenu.tsx:106:55 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
106
Documents
../core/src/components/taskbar/menus/HomeMenu.tsx:109:5 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
109
../core/src/components/taskbar/menus/HomeMenu.tsx:111:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
111
../core/src/components/taskbar/menus/HomeMenu.tsx:113:55 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
113
{systemName}
../core/src/components/taskbar/menus/HomeMenu.tsx:115:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
115
118 key={id}
126 >
../core/src/components/taskbar/menus/HomeMenu.tsx:128:54 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
128
{name}
../core/src/components/taskbar/menus/HomeMenu.tsx:131:6 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
131
../core/src/components/taskbar/menus/HomeMenu.tsx:133:4 - error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.
133