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
Error: ERR_UNSUPPORTED_ESM_URL_SCHEME for new release on run #8651
Comments
@giladgd can you please check this out? |
Super strange. The issue makes Typeorm completely unusable on ESM projects, but it still works fine on non-ESM projects. Turning on logging gives Do you guys potentially have any suggestions on what to do to work around this issue? |
@pleerock @CantisW After some more rigorous testing on Windows I found the problem that you're experiencing, though not through the generated project. |
Issue Description
Using the new Typeorm release does not work as expected as it keeps giving a
ERR_UNSUPPORTED_ESM_URL_SCHEME
error.Expected Behavior
TypeOrm should run as intended.
Actual Behavior
TypeOrm tries to connect to the ormconfig database, then before it can get any further, errors.
The project was created using
npx typeorm init --name MyProject --database postgres --module esm
Steps to Reproduce
npx typeorm init --name MyProject --database postgres --module esm
node start
)My Environment
Additional Context
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: