Migrator.fromFileSystem fails on Windows under moduleResolution:bundler
option in tsconfig.json
#4297
Labels
bug
Something isn't working
What version of Effect is running?
No response
What steps can reproduce the bug?
Run
packages/sql-mssql/examples/
on Windows 10Use
bundler
intsconfig.json
What is the expected behavior?
Migrations should be loaded and run successfully
What do you see instead?
Additional information
Fix is needed in
packages/sql/src/Migrator/FileSystem.ts
Change the line: https://github.com/Effect-TS/effect/blob/bec5ea459a363b7893f106643b4fb61a5246f722/packages/sql/src/Migrator/FileSystem.ts#L34C25-L34C51
Instead of
${directory}/${basename}
it should befile://${directory}/${basename}
for Windows OS.This primitive solution was tested on my machine. We have to make
import
call OS agnostic, perhaps by adding some conditions?The text was updated successfully, but these errors were encountered: