itsmesjp
itsmesjp

Reputation: 1

TypeError: Cannot read properties of null (reading '1')

Hi iam using creative tim dark react template. im getting the following error Error in the image. See the image for more details.

Upvotes: -3

Views: 1248

Answers (2)

jeffery zhu
jeffery zhu

Reputation: 1

The database version can be added in knex configuration, when you use the PostgreSQL adapter to connect a non-standard database.

const knex = require('knex')({
  client: 'pg',
  *version: '15.5',*
  connection: {
    host: '127.0.0.1',
    port: 5432,
    user: 'your_database_user',
    password: 'your_database_password',
    database: 'myapp_test',
  },
});  

Upvotes: 0

mmantach
mmantach

Reputation: 148

process.version return a json object you need to get the specific value that you will get from the result

Upvotes: 0

Related Questions