-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
No matching export in "node_modules/@astrojs/db/dist/runtime/index.js" for import "sql" #1
Comments
Seems like this commit removes exports for both Not sure if it should be fixed in @astrojs/db(or why they even changed it) or if pilcrowOnPaper is fine with the "fix" I mentioned above |
Nvm, I'm dumb this PR moves them to /runtime/config.ts Edit: they have this in their package.json |
Yeah im not sure on this. Quite odd |
I'm not really sure what API to use since |
Sounds like something to talk to the Astro team about. |
What is a solution you guys are using rn? |
I just went back to @astrojs/db 0.8.6, but wouldn't say that's a solution |
I dont know if its a possible solution but i locally changed my dist file of the adapter to |
Whats worked for me is to copy the adapter into my lib directory and call it from there, and adapt it as follows: import { sql } from 'astro:db';
import type { db as SqliteDB } from 'astro:db';
import type { Table } from "@astrojs/db/runtime"; and then use typeof in the private variable and constructor: private db: typeof SqliteDB;
...
constructor(db: typeof SqliteDB, sessionTable: SessionTable, userTable: UserTable) {
...
} |
Fixed with 0.0.5 - see the README for configuring your project |
Seems like this is not exported from
@astrjojs/db/runtime
The text was updated successfully, but these errors were encountered: