Code Monkey home page Code Monkey logo

Comments (5)

vincss avatar vincss commented on August 10, 2024 1

Yes, the issue is that the package-lock.json changed between major releases of npm ( 6 -> 7 -> 8).

npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile

I'm going to update with the latest lts which is 8.
https://nodejs.org/en/download/releases/

EDIT: it's done, if you want to give a try with the latest master.

from mcsleepingserverstarter.

iwa avatar iwa commented on August 10, 2024

thanks for the bug report!

but we haven't upgraded typescript to the latest version yet, and it seems that you installed a newer one
so to be sure you're not running into bugs cause you're not using the right deps versions, please make sure to use the typescript version installed in node_modules and not yours installed globally before reporting an issue

from mcsleepingserverstarter.

vincss avatar vincss commented on August 10, 2024

Hi !
Did you use yarn or npm ?
If npm, which version of npm did you use ?

from mcsleepingserverstarter.

ArmoredFuzzball avatar ArmoredFuzzball commented on August 10, 2024

I am using npm version 7.24.1. Sorry for the late reply.

from mcsleepingserverstarter.

Rysanlos avatar Rysanlos commented on August 10, 2024

I have the same issue with npm version 8.1.0

    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
sleepingSettings.ts:46:50 - error TS2571: Object is of type 'unknown'.

46         logger.error('Failed to write setting.', error.message);
                                                    ~~~~~
sleepingSettings.ts:57:64 - error TS2571: Object is of type 'unknown'.

57         logger.error('Failed to load setting, using default.', error.message);
                                                                  ~~~~~

adding "useUnknownInCatchVariables": false, to tsconfig.json helped to fix it.

from mcsleepingserverstarter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.