question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Keystone upgrade relationships' gives error when using TypeScript with subdirectory for build

See original GitHub issue

I have a Keystone project in Typescript that builds to the subdirectory tsout

// from tsconfig.json
"compilerOptions": {
  ...
    "outDir": "tsout",
  ...
  },

When I run keystone upgrade relationships I get

ℹ Command: keystone upgrade-relationships
✖
Error: --entry=index.js was passed to keystone, but 'index.js' couldn't be found in /Users/ranthony/Documents/projects/yaa-cms.

My package.json script is

"dev": "tsc && cross-env NODE_ENV=development DISABLE_LOGGING=true keystone --entry=tsout/index.js dev --port=4545",

Coincidentally I get a similar error when trying to debug under WebStorm:

/Users/ranthony/.nvm/versions/node/v12.14.0/bin/node /Users/ranthony/Documents/projects/yaa-cms/node_modules/@keystonejs/keystone/bin/cli.js dev
Debugger listening on ws://127.0.0.1:57962/6784997d-5f53-4000-bf21-311cf38412b3
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
- Initialising Keystone CLI
ℹ Command: keystone dev
-
✖ Validating project entry file
Error: --entry=index.js was passed to keystone, but 'index.js' couldn't be found in /Users/ranthony/Documents/projects/yaa-cms.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ra-externalcommented, Apr 8, 2020

Doh!

1reaction
timlesliecommented, Apr 8, 2020

My bad, that should be --entry=, not --index=.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript `tsc` not picking up tsconfig.json inside a ...
It feels to me that running a single tsc with nested tsconfig.json files should give me the desired results.) Anyone know what it...
Read more >
VS Code Does Not Recognize TSConfig Settings in ... - GitHub
Create tsconfig.json under subdirectory (in my case, a new folder in the root of the project called "config"); Add values to the tsconfig...
Read more >
rushstack/rushstack - Gitter
An NPM package that gives you TypeScript+Jest+Webpack+ESLint+etc in a nice ... then through to a particular "app" project to build a keystone project....
Read more >
Pipelines | CI/CD | OpenShift Container Platform 4.8
This guide provides a detailed view of the various pipeline concepts. ... operator : Specifies the relationship of an input to a set...
Read more >
Untitled
Type 1 error pdf, Deutsche bahn schienennetz km! Ismael serrano recuerdo mp3 descargar, Bandas mimizan, Bursaspor sivasspor izle, Writenodefile, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found