Comments (5)
thank you, we've discussed this recently and will now prioritise 👍
from drizzle-orm.
This has become a showstopper for me as well. I ultimately can't compile for production because of this.
from drizzle-orm.
When I go to compile my app I get errors like this:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/jtsmith/ving/.output/server/node_modules/drizzle-orm/mysql-core/expressions' imported from /Users/jtsmith/ving/.output/server/index.mjs
These errors are not coming from my code, but actually modules inside of drizzle referencing each other.
Probably not that helpful to you, but I thought I'd add some context just in case.
from drizzle-orm.
I've found a way to work around this problem. It's nasty, but it works.
import type { MySql2Database } from 'drizzle-orm/mysql2/index.js';
import type { SQL } from 'drizzle-orm/sql/index.js';
import { sql } from 'drizzle-orm/index.js';
import { like, eq, asc, desc, and, or, ne } from 'drizzle-orm/mysql-core/expressions.js';
import { Name } from "drizzle-orm/table.js";
import { AnyMySqlColumn } from 'drizzle-orm/mysql-core/index.js';
As you can see, I can refer to a specific filename and then I don't get the Cannot find module '/Users/jtsmith/ving/.output/server/node_modules/drizzle-orm/mysql-core/expressions'
error.
Credit where credit is do, it was actually @pi0 who figured it out.
from drizzle-orm.
I was getting ERR_UNSUPPORTED_DIR_IMPORT
errors caused by missing exports.
The above workaround works for this as well.
from drizzle-orm.
Related Issues (20)
- [FEATURE]: Add more flexible typing for usage with `exactOptionalPropertyTypes`
- [BUG]: Postgres drizzle-kit: Error while pulling indexes from a table with json/jsonb deep field index
- [FEATURE]: Option to return null fields as undefined instead of null
- [BUG]: Studio + mysql default mode, wrong format related timezone
- [BUG]: When changing column type migration lacks USING statement on Postgres
- [BUG]: drizzle multi project schema with kysely
- [BUG]: `pgEnum` `enumValues` starts out as an array of strings but changes to an array of objects during runtime HOT 1
- [BUG]: (Duplicate) InferInsertModel is omitting nullable columns HOT 2
- [BUG]: drizzle-zod not overriding optional
- [BUG]: Either connection "url" or "host", "database" are required for PostgreSQL database connection HOT 1
- [ISSUE]: Nested Query { with } not returning for deep nested schema
- [BUG]: Query API returning empty array result HOT 1
- [FEATURE]: Cancel empty queries
- [BUG]: drizzle-kit push TypeError: This statement does not return data. Use run() instead HOT 2
- [BUG]:Error does not go away even after code is fixed
- [BUG]: Drizzle migration dont create data base if not existed in postgres HOT 1
- [BUG]: drizzle-orm dependency missing in drizzle-kit HOT 1
- [FEATURE]: Auto-Alias Columns in Subqueries
- [BUG]: drizzle-kit introspect casing "preserve" config not working
- [FEATURE]: add luxon datetime mode to timestamp columns
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 drizzle-orm.