Git Product home page Git Product logo

Comments (5)

Jiralite avatar Jiralite commented on June 23, 2024 1

Just to be clear, these errors are from not understanding const type parameters (duplicate of #9783), introduced with TypeScript 5.0. Your version was not what you thought it to be when your code was compiled.

from discord.js.

Jiralite avatar Jiralite commented on June 23, 2024

This definitely looks like you are not using TypeScript 5+. You have a version clash somewhere. You need to resolve it.

from discord.js.

Mohammad-Orabi avatar Mohammad-Orabi commented on June 23, 2024

@Jiralite
tsc --version
Version 5.3.3
npx tsc --version
Version 5.3.3

what do you exactly mean by version clash?

from discord.js.

didinele avatar didinele commented on June 23, 2024

How are you running tsc to actually produce the error provided, just tsc?

from discord.js.

Mohammad-Orabi avatar Mohammad-Orabi commented on June 23, 2024

@didinele I just changed from this at the moment
"dev": " npx tsc-watch --onFirstSuccess "nodemon dist/index.js"",
to this
"dev": "concurrently "tsc -w" "nodemon dist/index.js"",

testing now I think this resolved the issue

from discord.js.

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.