denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
223 stars 23 forks source link

"Remote modules are not allowed to import local modules" #137

Open applmak opened 1 year ago

applmak commented 1 year ago

Hi. After upgrading deno, I'm now getting:

Remote modules are not allowed to import local modules. Consider using a dynamic import instead.

when I'm trying to use emit on some typescript code. Normally, I'd pass '--unstable' to deno run to make this work, but I'm not sure how to do that via emit(). Is there such an option?

yacinehmito commented 1 year ago

Which version of Deno are you on?

applmak commented 1 year ago

Sorry, I should have included this. I'm now on the latest:

$ deno --version
deno 1.36.4 (release, aarch64-apple-darwin)
v8 11.6.189.12
typescript 5.1.6
dsherret commented 1 year ago

Can you post a reproduction? Is there a remote module importing a local module?