-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Failed to resolve module "mysql2" #760
Comments
Would it be possible to create a minimal code snippet that can reproduce your issue? Specifically, what would be useful here is how your code imports and uses |
absolutely! |
I have found a possible workaround as a temporary fix until further investigation is made on this. I was trying to create a database connection as following: import { drizzle } from "drizzle-orm/mysql2";
const db = drizzle('DATABASE_URL'); now, I simply manually add mysql: import mysql from "mysql2/promise";
import { drizzle } from "drizzle-orm/mysql2";
const db = drizzle('DATABASE_URL'); |
@yjavaherian Thank you so much for creating a repo with minimal example! That is super useful.
As a result, you ended up getting the This is explaining why your workaround solves the issue - by explicitly doing import "mysql2"; I think the system may need to respect |
Problem description
Hi. im trying to deploy my first fresh project with deno deploy. all goes well until the final step of "Upload to DenoDeploy" in my github action which i get the following error:
Error: The deployment failed: BOOT_FAILURE
Failed to resolve module "mysql2" from "file:///node_modules/.deno/[email protected]/node_modules/drizzle-orm/mysql2/driver.js"
off course i have this module in my deno.json file and i even install it using npm in the install section just to be sure.
i have no problem running my code locally and so I do not understand where the problem is.
Steps to reproduce
try to deploy using the following github action:
Expected behavior
to be able to successfully deploy my webapp
Environment
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: