Sigma-Production / PteroFreeStuffinstaller

Free themes and handy Addons on 1 place
Other
80 stars 29 forks source link

Getting error #27

Closed Atharv-Pathak-14 closed 2 years ago

Atharv-Pathak-14 commented 2 years ago

Got this error while installing red and dark theme

TS2307: Cannot find module 'use-react-router' or its corresponding type declarations.
    1 | import React, { useCallback, useEffect, useState, lazy } from 'react';
  > 2 | import useRouter from 'use-react-router';
      |                       ^^^^^^^^^^^^^^^^^^
    3 | import { ServerContext } from '@/state/server';
    4 | import ace, { Editor } from 'brace';
    5 | import getFileContents from '@/api/server/files/getFileContents';

ERROR in resources/scripts/components/elements/AceEditor.tsx:4:29
TS2307: Cannot find module 'brace' or its corresponding type declarations.
    2 | import useRouter from 'use-react-router';
    3 | import { ServerContext } from '@/state/server';
  > 4 | import ace, { Editor } from 'brace';
      |                             ^^^^^^^
    5 | import getFileContents from '@/api/server/files/getFileContents';
    6 | import styled from 'styled-components';
    7 | 

ERROR in resources/scripts/components/elements/SuspenseSpinner.tsx:8:42
TS2322: Type '"normal"' is not assignable to type 'SpinnerSize | undefined'.
     6 |         fallback={
     7 |             <div className={'mx-4 w-3/4 mr-4 flex items-center justify-center'}>
Atharv-Pathak-14 commented 2 years ago

And yes now my panel is blank please tell how to fix

finnie2006 commented 2 years ago

It looks like you have / had other addons or themes install, it looks like it conflicts with it

Note: to fix the blank panel run the update commands for pterodactyl

Atharv-Pathak-14 commented 2 years ago

Ok will try

Atharv-Pathak-14 commented 2 years ago

It looks like you have / had other addons or themes install, it looks like it conflicts with it

Note: to fix the blank panel run the update commands for pterodactyl

Umm I don't think I have any but I will recheck do you know how to remove them?

finnie2006 commented 2 years ago

Run the update command

Atharv-Pathak-14 commented 2 years ago

Run the update command

Done

Atharv-Pathak-14 commented 2 years ago

Panel is now visible but how to add theme?

finnie2006 commented 2 years ago

try the command gain

Atharv-Pathak-14 commented 2 years ago

try the command gain

ERROR in resources/scripts/components/elements/SuspenseSpi
nner.tsx:8:42
TS2322: Type '"normal"' is not assignable to type 'Spinner
Size | undefined'.
     6 |         fallback={
     7 |             <div className={'mx-4 w-3/4 mr-4 flex
 items-center justify-center'}>
  >  8 |                 <Spinner centered={true} size={'n
ormal'}/>
       |                                          ^^^^
     9 |             </div>
    10 |         }
    11 |     >

ERROR in resources/scripts/plugins/useDeepMemo.ts:2:21
TS7016: Could not find a declaration file for module 'loda
sh-es/isEqual'. '/var/www/pterodactyl/node_modules/lodash-
es/isEqual.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/lodash-es` if it exists or 
add a new declaration (.d.ts) file containing `declare mod
ule 'lodash-es/isEqual';`
Atharv-Pathak-14 commented 2 years ago

Again same

finnie2006 commented 2 years ago

Hmm, in the logs it still looks like there is something of an addon left

Atharv-Pathak-14 commented 2 years ago

Hmm, in the logs it still looks like there is something of an addon left

I just have yours statistics add-on

Atharv-Pathak-14 commented 2 years ago

Can you tell me how to remove it so that I can install theme

Happyllama25 commented 2 years ago

I'm also having this issue, when installing all of the darkN themes my main panel page is just blank, using the update command (cd /var/www/pterodactyl && php artisan p:upgrade) reverts it to how it was before correctly.

Atharv-Pathak-14 commented 2 years ago

Error solved thanks for help