-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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: Uncaught (in promise) TypeError: Unsupported scheme "node" for module "node:XXX" #16223
Comments
Same error on |
I met this error with the
|
|
Hi, I'm seeing the same sort of error messages when trying out deno's npm support (specifically, I'm trying to see how well it can do running mojo.js). The npm packages get parsed, but it chokes on imports with the Even something as simple as this:
Causes
The |
@dotandimet could you please provide a minimal reproduction to that error you're getting? |
Steps to reproduce
Output
|
@bartlomieju, I am getting this error using vite and demo with --node-modules-dir flag. I am attempting to use vite with vite.config.mts and it seems this has broken vite support. |
@JonathonRP can you share your project with commands to run it? This is still on our radar, but is blocked by #16748. |
@bartlomieju, https://github.com/JonathonRP/JonathonRP.github.io/tree/Feature/SvelteKit.
|
Can confirm this bug is still in Deno 1.29- by running |
@bartlomieju, this is still a problem please check the repo I provided and let me know. This is a big blocker for me to use deno with vite |
As pointed before, this is blocked by #16748. Without I'm not sure we can support it. I might take a stab it after New Year. |
Single step to reproduce
Run this command (revised command courtesy of AnInternetTroll):
Error output:
This is because the module in question does
import 'module'
which I believe Deno translates toimport 'node:module'
("module" being an actual Node module- confusing haha).I've tried this in Github Codespaces (
deno 1.26.1+a622c5d (canary, x86_64-unknown-linux-gnu)
)The text was updated successfully, but these errors were encountered: