Fredx87 / effect-kysely

kysely adapter for effect
MIT License
19 stars 0 forks source link

Import path issues #9

Open jessekelly881 opened 4 months ago

jessekelly881 commented 4 months ago

I'm giving this lib a try and I was having some issues w/ the import path. I currently have to add this to my ts config for ts to accept that "effect-kysely/sqlfx" is a path that exists. lol.

"compilerOptions": {
    "paths": {
        "effect-kysely/*": [
            "node_modules/effect-kysely/dist/*"
        ]
    }
}

Also, importing from "effect-kysely/dist/sqlfx" makes ts happy without the code above but breaks (at least) bun test.

Fredx87 commented 3 months ago

Are you importing from effect-kysely/sqlfx or effect-kysely/sqlfx.js?

I defined the exports in the package.json with the js extension at the end, so I don't think it would work without specifying the extension

jessekelly881 commented 3 months ago

Just effect-kysely/sqlfx if I recall correctly(it's been a while since I've use this)