Deno showing node globalThis error
Deno is showing this error:
The mentioned file starts as this:
14 Replies
I believe deno is adding so of its own lines at the top of the dependency?
can you show some reproducible code?
@retraigo ^^
when trying to run
> reejs
@retraigo its doesnt support windows file system urls atm, try running it on git bash terminal or wsl2
ah ay
@retraigo could you reproduce the bug?
yep
I'm looking into it
seems it has to do with the "auto discovery of node_modules with package.json"
passing
--no-config
might helpseems it is a known issue https://github.com/denoland/deno/issues/18450
GitHub
deno repl
Uncaught ReferenceError: DENO_NODE_GLOBAL_THIS_XXX ...Reproduce $ tail -n +1 * ==> app.mts <== await import('reproduce') ==> deno.jsonc <== { "imports": { "ip-regex": "npm:ip-regex@5.0.0", "reprod...
@retraigo deleting package json won't fix it though
I want a way without adding additional args to deno
removing package.json just gives me a normal error
@retraigo did you remove package json inside packit or the main folder?
packit
Hmm
Yea deleting package.json fixes my problem. Thanks.