Giter Site home page Giter Site logo

Comments (4)

jasonkuhrt avatar jasonkuhrt commented on June 15, 2024 1

@marticrespi sorry to hear that! I will see if I can repro on one of my projects.

from graphqlgen.

jasonkuhrt avatar jasonkuhrt commented on June 15, 2024

issue here 19f5bce#diff-aeb8c724fbf89c652a9b9d6531803566R6

possible solutions:

  1. move ts-node from dev-dep to dep
  2. move ts-node from dev-dep to optional-dependencies; then use dynamic import (require) and raise manual error if ts-node not found (tell user that they need to install ts-node to use schemas in ts files)

Option 1 increases install time and dep tree complexity for all while Option 2 only does so for users using the schema-in-ts-file feature. But Option 2 requires more effort from users that are using the schema-in-ts-file while option 1 would Just Work.

From what I see at http://npm.anvaka.com/#/view/2d/ts-node option 1 seems fine.

from graphqlgen.

jasonkuhrt avatar jasonkuhrt commented on June 15, 2024

Hi 👋 @marticrespi, thanks for reporting. Will fix this tonight.

from graphqlgen.

marticrespi avatar marticrespi commented on June 15, 2024

Hi @jasonkuhrt I have updated to rc9 and before, I have deleted all node_modules folder and it throws the same error. :(

from graphqlgen.

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.