Coder Social home page Coder Social logo

Comments (5)

hayes avatar hayes commented on July 17, 2024

Weird. This works when I run it locally, but in code-sandbox reproduces your issue: https://codesandbox.io/s/thirsty-franklin-xp868?file=/src/index.ts

from pothos.

hayes avatar hayes commented on July 17, 2024

Okay, did some digging. What's in your tsconfig? Make sure your target is set to at least es6 (default is es3). I think I'll need to include that in the docs somewhere.

from pothos.

MollariGaming avatar MollariGaming commented on July 17, 2024

Changing the target to es6 fixed it (tsc --init defaults to es5 in typescript 4.3.4 where it resolves to BaseError for both) Appreciate you looking into it as I just quick threw together a new project to check it out and had not done much for configuration. That also fixed the type error with the empty errors object as well, thanks!

from pothos.

hayes avatar hayes commented on July 17, 2024

Re-opening this to track the need for docs update

from pothos.

hayes avatar hayes commented on July 17, 2024

docs updated

from pothos.

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.