-
-
Notifications
You must be signed in to change notification settings - Fork 1
Migration script error: ERR_UNSUPPORTED_ESM_URL_SCHEME #38
Comments
HI @AdisonCavani sorry for the late reply, we only recently touched this tool again 😬 Is this still an issue today? We're currently releasing version 8.0.0 of the SDKs which changed a lot around ESM and package.json exports so chances are that whatever caused this, is already fixed. |
Just tried and got the same error, using Node 22.1.0 on Windows. I'm guessing you are dynamically loading a module with a path like
|
Same issue here. Windows 11, Node v20.13.1, npm 10.7.0. Runs fine under WSL2 with Ubuntu 22.04 and the same Node/npm versions. |
thanks for the hints, looking into this in a sec! |
Tried to be smart and run this tool in a Docker container to get around the error of this issue using the following in Powershell: docker run --rm -v ${pwd}:/app -w /app node:20 npx @sentry/migr8@latest But received the following error for version 0.2.0: Error of the command above
|
Can anyone confirm that If so, I think I found the culprit. @AdisonCavani your suspicion RE importing a module with wrong paths is correct. We currently hardcoded a |
to everyone following this issue (gonna tag @AdisonCavani and @leviwolfe): We just released a new version. If you run Given you're on windows, there seems to be a known issue with terminals that use Git Bash/MINGW and the library we use for the input prompts in migr8. So I recommend using a terminal that doesn't use the Git Bash shell to run migr8. Hoping this works 🤞 |
I ran migr8 yesterday on my windows PC with PowerShell. It worked. I'm gonna close this issue for the moment. Please feel free to ping me if the issue is not fixed for anyone, thanks :) |
Worked with Powershell (in Windows Terminal) on my end as well. |
Environment
package.json
:Steps to Reproduce
Expected Result
Successful migration
Actual Result
The text was updated successfully, but these errors were encountered: