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.

Trouble running starter

See original GitHub issue

I attempted to follow these instructions to try out Keystone:

$ npm init keystone-app keystone-app
(choose postgres and nuxt app)
$ cd keystone-app
$ yarn start
...
**If this is the first time you've run Keystone, you can create your database with the following command:
createdb keystone_app
✖ Connecting to database
Error: database "keystone_app" does not exist
...

This was my first problem. It was easy enough to run createdb keystone_app but this wasn’t in the instructions. You should probably mention it in the instructions.

I tried again and I ran into Vue errors

$ yarn dev
yarn run v1.19.1
$ cross-env NODE_ENV=development DISABLE_LOGGING=true keystone dev
ℹ Command: keystone dev
✔ Validated project entry file ./index.js
✔ Keystone server listening on port 3000
✔ Initialised Keystone instance
⠋ Connecting to databaseℹ Preparing project for development                                                                                                                                                               16:39:23
ℹ Initial build may take a while                                                                                                                                                                  16:39:23
⠹ Connecting to database✔ Builder initialized                                                                                                                                                                             16:39:23
⠴ Connecting to database✔ Nuxt files generated                                                                                                                                                                            16:39:24

✖ Client
  Compiled with some errors in 12.85s

✔ Server
  Compiled successfully in 10.00s


 ERROR  Failed to compile with 5 errors                                                                                                                                           friendly-errors 16:39:38

These dependencies were not found:                                                                                                                                                friendly-errors 16:39:38
                                                                                                                                                                                  friendly-errors 16:39:38
* core-js/modules/es6.regexp.to-string in ./dist/utils.js, ./dist/components/nuxt.js                                                                                              friendly-errors 16:39:38
* core-js/modules/es7.promise.finally in ./dist/client.js                                                                                                                         friendly-errors 16:39:38
* core-js/modules/es7.symbol.async-iterator in ./dist/client.js, ./dist/components/nuxt-link.client.js                                                                            friendly-errors 16:39:38
                                                                                                                                                                                  friendly-errors 16:39:38
To install them, you can run: npm install --save core-js/modules/es6.regexp.to-string core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator               friendly-errors 16:39:38
ℹ Waiting for file changes                                                                                                                                                                        16:39:38
✔ Connected to database
✔ Keystone instance is ready at http://localhost:3000 🚀
🔗 Keystone Admin UI:	http://localhost:3000/admin
🔗 GraphQL Playground:	http://localhost:3000/admin/graphiql
🔗 GraphQL API:		http://localhost:3000/admin/api
[Vue warn]: Error in render: "TypeError: Cannot read property 'length' of null"

found in

---> <Src/pages/index.vue> at src/pages/index.vue
       <Nuxt>
         <Dist/layouts/default.vue> at dist/layouts/default.vue
           <Root>
[Vue warn]: Error in render: "TypeError: Cannot read property 'length' of null"

found in

---> <Src/pages/index.vue> at src/pages/index.vue
       <Nuxt>
         <Dist/layouts/default.vue> at dist/layouts/default.vue
           <Root>
[Vue warn]: Error in render: "TypeError: Cannot read property 'length' of null"

found in

---> <Src/pages/index.vue> at src/pages/index.vue
       <Nuxt>
         <Dist/layouts/default.vue> at dist/layouts/default.vue
           <Root>
[Vue warn]: Error in render: "TypeError: Cannot read property 'length' of null"

found in

---> <Src/pages/index.vue> at src/pages/index.vue
       <Nuxt>
         <Dist/layouts/default.vue> at dist/layouts/default.vue
           <Root>

Tried running the suggested npm install --save core-js/modules/es6.regexp.to-string core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator but that failed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
justinmooncommented, Dec 26, 2019

I tried the vanilla javascript “todos” app and this time visited the admin UI. I see an error:

GraphQL error: select "t0".* from "public"."Todo" as "t0" where true order by "name" ASC limit $1 - relation "public.Todo" does not exist GraphQL error: select count(*) from "public"."Todo" as "t0" where true - relation "public.Todo" does not exist
4reactions
chris-kobrzakcommented, Dec 30, 2019

Same problem with Postgres here. The yarn dev command reports it has “Connected to database” but it fails to create any tables in the database. As a result, the application does not work at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Annoying Running Beginners Problems (SOLVED)!
1. Side stitches · 2. Stomach problems · 3. Sore muscles · 4. Breathing problems or shortness of breath · 5. Pain in...
Read more >
Running for Beginners: How to Get Started - Verywell Fit
Take measured steps to keep your body safe and free from injury. First, do a warm-up before you start running. Walk or do...
Read more >
How to Start Running: A Beginners Guide | REI Co-op
Try running for 1 minute, walking for 2 minutes and repeating. As you become more comfortable running, lengthen the time you do it....
Read more >
Car Won't Start? 5 Signs of a Bad Starter
How do you troubleshoot starter problems? · 1. Look under the hood. · 2. Tap the starter. · 3. Adjust the transmission. ·...
Read more >
What to Do If Your Car Won't Start | Family Handyman
If your car won't start, don't panic. There are a few things you can do to try and get it running before calling...
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