latitude-dev / latitude

Developer-first embedded analytics

Home Page:https://latitude.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read properties of undefined (reading 'host')

abgonzalez93 opened this issue · comments

Environment

  • Node version (node -v): 18.20.2
  • npm version (npm -v): 10.8.1
  • Latitude CLI version (latitude --version): 1.10.1
  • Latitude project version (check latitude.json at the root of your project): 2.0.1
  • OS: Ubuntu 22.04.3
  • Browser: Firefox 126.0.1
  • Database: MySQL

Actual Behaviour

This has been happening since v2.0.0
I had to downgrade Latitude to v1.2.3 to make it works

latitude-error

Hi @abgonzalez93 can you update to the latest mysql connector version?

npm i @latitude-data/mysql-connector@latest

It is working now!

It's weird though. Always I start working, the first thing I do is updating versions in my Latitude server.
I always do the following 3 steps:

  1. npm update -g @latitude-data/cli
  2. npm update
  3. latitude update

npm update is supposed to update libraries from package.json

imagen

But MySQL connector was previously on v2.1.2
I had to check https://www.npmjs.com/package/@latitude-data/mysql-connector to see if there was a newest version.
Somehow it's like I had to "force" the update to the latest version.

I guess it is because you had in package.json ^2.1.2 no? That doesn't bump the mayor version. I think it is *2.1.2 so npm update can't bump to *3.0.0.

Anyway, we're preparing latitude update if you update to the latest app version and update CLI and your connectors.