GithubHelp home page GithubHelp logo

Comments (9)

abgonzalez93 avatar abgonzalez93 commented on May 25, 2024 2

Everything working fine now.
We keep in touch!

from latitude.

abgonzalez93 avatar abgonzalez93 commented on May 25, 2024 1

imagen

I wonder if dependencies should be inside .latitude/app folder or in the root of my Latitude project, which is this case.

from latitude.

abgonzalez93 avatar abgonzalez93 commented on May 25, 2024 1

I'm always running latitude dev command in the root of my project

imagen

from latitude.

geclos avatar geclos commented on May 25, 2024 1

Ok looks good. I've been able to reproduce the query not found issue and will release a fix asap (today). In the meantime if this is critical i'd suggest to downgrade to a previous latitude version with latitude update.

from latitude.

geclos avatar geclos commented on May 25, 2024 1

this is probably some incompatibility with the version of the connector you installed and the version of latitude you are trying to use. It will get fix as soon as I fix the original issue and you can get to using the latest version of latitude. PR is already opened.

from latitude.

geclos avatar geclos commented on May 25, 2024

hey @abgonzalez93

Let's look at the 2 issues separately.

Connector not installed

The watchers detect if the package is installed via the package.json that should be present in the root of your project. Could you confirm you have a package.json at the root of your project and that it has the mysql connector listed in the dependencies list? If not, please do add a package.json and run the npm install --save ... connector from the root of your project

Query not found

The behaviour looks correct so I'm not sure what could be happening here. latitude dev keeps the contents of the queries folder in sync with the contents of .latitude/app/static/.latitude/queries folder. I'm gonna try to reproduce the issue on my end and come back to you.

from latitude.

geclos avatar geclos commented on May 25, 2024

Root of the project is where the connectors should be installed, so it looks ok. Some more questions then, are you running latitude dev from the terminal in the root of your project?

from latitude.

abgonzalez93 avatar abgonzalez93 commented on May 25, 2024

There is also an error in the previous version (1.0.1). It seems it's because of the MySQL connector:

/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/Parser.js:437
throw err; // Rethrow non-MySQL errors
^

TypeError: Cannot read properties of undefined (reading 'map')
at MysqlConnector.buildQueryParams (file:///home/antoniobueno/Analitica/fieldeas-demo/node_modules/@latitude-data/mysql-connector/dist/index.js:91:23)
at file:///home/antoniobueno/Analitica/fieldeas-demo/node_modules/@latitude-data/mysql-connector/dist/index.js:34:50
at Handshake.onConnect (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/Pool.js:64:7)
at Handshake. (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/Connection.js:526:10)
at Handshake._callback (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/Connection.js:488:16)
at Sequence.end (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Sequence.OkPacket (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/sequences/Sequence.js:92:8)
at Protocol._parsePacket (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/Protocol.js:291:23)
at Parser._parsePacket (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/Parser.js:433:10)
at Parser.write (/home/antoniobueno/Analitica/fieldeas-demo/node_modules/mysql/lib/protocol/Parser.js:43:10)

Node.js v18.20.2

from latitude.

geclos avatar geclos commented on May 25, 2024

@abgonzalez93 the patch is released if you could update cli and latitude project to latest versions the issue should be solved 🙏🏼

from latitude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.