Don't execution in node env after deno project bundling result
See original GitHub issue- Deno default logger’s code using `Top Level await’
And…
- Deno default bundler don’t support
target
ormodule
config
So
If using Deno default loger(std lib)
And Bundling code’s result include follow codes
...
await setup(DEFAULT_CONFIG);
...
These code don’t execution in node env… because node(in my test v17.2.0) is not support top level await.
- Can not you change it?
https://deno.land/std@0.117.0/log/mod.ts#L211
(async () => {
await setup(DEFAULT_CONFIG);
})();
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
What is Deno, and how is it different from Node.js?
js, Deno by default executes the code in a sandbox, which means that runtime has no access to: The file system; The network;...
Read more >Welcome Deno! Does this mean goodbye to Node.js? - Stack Builders
It is called Deno, and in the following article, we would like to explore some of its concepts to determine if it will...
Read more >Usage, Best Practices & Node Module Imports - Deno - SitePoint
CommonJS loads dependencies from the file system on demand while executing the code. ES modules are pre-parsed from URLs in order to resolve ......
Read more >Testing | Manual - Deno
This command will run all of these tests because they all contain the word "test". deno test --filter "test" tests/. On the flip...
Read more >Deno VS Node and the neverending challenge of JavaScript ...
Cannot execute other scripts;; Doesn't have access to environment variables. Let's make a simple example. Consider the following script: async ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
node
is possible (theoretically)so we decided
deno bundle
result do not execute by ‘node’. we execute by ‘deno’.@kt3k thank you for your help~!
Can you share the dependencies of your server? What’s the result of
deno info -c ./deno.json src/server.ts
?