Comments (10)
@0xMALVEE, thanks to show your solution 🙋🏻♂️
Just bringing it from MySQL2 documentation for TypeScript:
node-mysql2/website/docs/documentation/typescript-examples.mdx
Lines 21 to 37 in db13468
@wellwelwel thanks. I didn't knew that tsconfig property exists haha. 🤯
from node-mysql2.
idk why mysql2 is saying it's undefined. I rm -r node_modules and install again same thing.
from node-mysql2.
@sidorares @wellwelwel @jmordica
from node-mysql2.
Hey @0xMALVEE, can you share a basic repro as text/code block?
Knowing more about your context can help (some practical usage for databaseProvider
and useFactory
or where they are called, for example) 🙋🏻♂️
from node-mysql2.
Hey @0xMALVEE, can you share a basic repro as text/code block?
Knowing more about your context can help (some practical usage for
databaseProvider
anduseFactory
or where they are called, for example) 🙋🏻♂️
Basically a nest js mono repo. it only doing problem with mysql2 , all other npm packages work just fine. Even I put it on main.ts same giving undefined other then useFactory.
from node-mysql2.
When isolating NestJS and MySQL2, do you get the same error? If so, please share it. With a repro, I can get the same error to test it.
Sorry @0xMALVEE, I can't reproduce your code as an image 😕
from node-mysql2.
When isolating NestJS and MySQL2, do you get the same error? If so, please share it. With a repro, I can get the same error to test it.
Sorry @0xMALVEE, I can't reproduce your code as an image 😕
aight let me prepair for you.
from node-mysql2.
@wellwelwel hey I posted in nest js discord as well. just checked seems like they gave a solution , was a problem with my import. it's working now. had to import * as . but in drizzle docs they didn't mention this seems out outdated drizzle docs.
from node-mysql2.
import problem. drizzle docs outdated.
from node-mysql2.
@0xMALVEE, thanks to show your solution 🙋🏻♂️
Just bringing it from MySQL2 documentation for TypeScript:
node-mysql2/website/docs/documentation/typescript-examples.mdx
Lines 21 to 37 in db13468
from node-mysql2.
Related Issues (20)
- HANDSHAKE_SSL_ERROR with RDS and 3.9.3+ HOT 12
- Can't create more than max prepared stmtount statements(current value: 16382) HOT 4
- Release 3.9.4 breaks code that depended on .hasOwnProperty() HOT 3
- got warning when host is an IP address HOT 3
- Transaction issue in my code. Please Help!
- read ECONNRESET after upgrading HOT 11
- typeCast: false causes out of bounds reads to packet when result set contains NULL values and binary protocol is used.
- README documentation HOT 1
- True negative: ssl-mode query params in connectionString considered as invalid HOT 1
- TypeError: LRU is not a constructor HOT 4
- PoolConnection.execute() retrun object v3.9.7 HOT 6
- Deadlock found when trying to get lock HOT 3
- [createConnection] Can't add new command when connection is in closed state HOT 8
- Sporadic read ETIMEDOUT error HOT 9
- Incorrect typings lead to pool.destroy is not a function HOT 2
- Invalid ssl option but still DB connection working fine HOT 1
- Access Denied after database restart (but granted after login via CLI) HOT 23
- Importing mysql2 causes source maps not working in project bundled with webpack HOT 7
- DELIMITER causes syntax error
- Building query for ORDER BY ? DESC/ASC doesn't seem to use the values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-mysql2.