You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
$ graphqlgen
module.js:540
throw err;
^
Error: Cannot find module 'ts-node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\XXXXXXX\AppData\Roaming\npm\node_modules\graphqlgen\dist\parse.js:19:14)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
Versions
It's strange, throw same error when I want to know my installed version. But it's the last version, 0.6.0-rc8.
$ graphqlgen --version
module.js:540
throw err;
^
Error: Cannot find module 'ts-node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\XXXXX\AppData\Roaming\npm\node_modules\graphqlgen\dist\parse.js:19:14)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
OS name and version: Windows 10
The text was updated successfully, but these errors were encountered:
marticrespi
changed the title
Cannot finde module ts-node
Cannot find module ts-node
Feb 18, 2019
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.
Description
When I execute
graphqlgen
doesn't work, it tells me thatts-node
is missing fromgraphqlgen/dist/parse.js
Steps to reproduce
Only I have installed it with these dev dependencies..
Expected results
Generate the code successfully.
Actual results
Versions
It's strange, throw same error when I want to know my installed version. But it's the last version, 0.6.0-rc8.
The text was updated successfully, but these errors were encountered: