Memory leak when conditionally stubbing fetch
@std/testing/mock
where I want to stub fetch for only a specific URL (an OAuth token exchange endpoint) receiving a mocked response in this case. For all other fetches, I want the fetch to behave normally. Everything seems to be functional however the test is failing due to fetchCancelHandles not being cleared up but I really can't see how this could happen as all requests made have their bodies consumed.
I wondered if any smarter people have experienced this before or have any answers as to why this specific behaviour is arising.
Error: ```...Why isn't the API_PORT variable being loaded? Is there something I'm missing?
React + Vite (without `node_modules`)
node_modules
dir. I thought this might be doable thanks to the new deno-vite-plugin from the Deno team. Unfortunately I encounter an issue upon running the served/built application (see issue here). Wondering if anyone has ideas on how to resolve this issue? If so, Deno+Vite+React projects will be so much cleaner!How do I supress deno(resolver-error)
deno check does not accept noImplicitReturns
deno.json
:
```json
{
"compilerOptions": {...Config deno.json for Svelte formatting
deno.json
, is it true?
```json
{
"lint": {...how to add a code generation hook pre-build in fresh
deno run --watch ... dev.ts
, it uses deno's native watch feature and restarts the server when a file changes.
in my needs, when a specific file types.ts
I need to run a different generation script, something like deno ./generate.ts ./libs/types.ts ./libs/types.gen.ts
...import_map.json not working
Warning the configuration file "cwd/deno.json" contains an entry for "importMap" that is being ignored.
error: Relative import path "@std/cli/parse-args" not prefixed with / or ./ or ../ and not in import map from "project/config/build/index.ts"
Warning the configuration file "cwd/deno.json" contains an entry for "importMap" that is being ignored.
error: Relative import path "@std/cli/parse-args" not prefixed with / or ./ or ../ and not in import map from "project/config/build/index.ts"
Can Deno Jupyter output images like jpegs?
Nestjs project hasn't been support for now?
[bug ✨] Cannot find module (in vs code)
deno main.ts
also I'm not getting any check errors....Failed to resolve import "react/jsx-dev-runtime" from "src/main.tsx"
Failed to resolve import "react/jsx-dev-runtime" from "src/main.tsx"
. I would expect this to be resolved from the react/
import map. Any suggestions?...document is not defined error while testing preact hooks
deno test
, it throws me the next error:
error: ReferenceError: document is not defined
error: ReferenceError: document is not defined
How to remove yellow underlines in deno.lock file
Transpile TS to JS
<script type="module" src="test.ts"></script>
<script type="module" src="test.ts"></script>
Cannot run existing Nextjs App
Remove development dependencies in CI
npm i
and then build the app before removing the node_modules
folder and installing only the prod dependencies.
I don't think deno install
has a --ci
option. How can I install only the prod dependencies and not dev with Deno? Or is this not necessary with Deno?
Current WIP Dockerfile (please let me know if you spot anything I can improve!):...Could not build NextJS project
Any docs for profiling deno in vs code?
JSR publish: source .ts or transpiled .js w/sourcemaps?
main
, module
, typings
in my manifest, all that jazz?