Unable to get Postgres backend running with npm

I just created a fresh local project on Forest using lumber-cli. I have a local postgres database. I chose npm instead of docker. All the steps completed properly, but when actually trying to load the data of any collection, I just see the loading image. I cannot see any error traces. Attaching screenshots:

Expected behavior

Collections should load the data from the database tables when clicked.

Actual behavior

No data is loading in collections.

Context

From package.json:

    "chalk": "~1.1.3",
    "cookie-parser": "1.4.4",
    "cors": "2.8.5",
    "debug": "~4.0.1",
    "dotenv": "~6.1.0",
    "express": "~4.16.3",
    "express-jwt": "5.3.1",
    "forest-express-sequelize": "^6.0.0",
    "morgan": "1.9.1",
    "require-all": "^3.0.0",
    "sequelize": "~5.15.1",
    "pg": "~6.1.0"
  • Database Version: 11.8
  • Project Name: sqrrl-v6-test

Hello @adsahay_forest :wave:

Welcome to our community :tada::confetti_ball:

If I’m not mistaken, you are using nodejs version 14 right ?

If this is the case, please can you upgrade the “pg” dependency in your package.json file please? You can set it to 8.2.2.

You application should then work after a restart :+1:

Sorry for the inconvenience, we are working on a fix for further project.

Does this help ?

Steve.

1 Like

This worked - thanks!

1 Like

Hi @adsahay_forest,

A fix has been released and this additional step is no longer required on your end for future projects.
Thanks for bearing with us :slightly_smiling_face:

1 Like