D
Deno

help

How to ignore ts error when bundling?

OOoker7/31/2023
I run
deno bundle '.main.ts' fibery.js
deno bundle '.main.ts' fibery.js
and it refuses to work due to 41 errors. Mostly they are any type error. When debugging they run fine. Is there a way to force bundling? I add the //@ts-ignore at the top of the file but it doesn't work
Jjavi7/31/2023
Bundle is deprecated (https://github.com/denoland/deno/issues/11073), try something like esbuild
GitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
SSyrupThinker7/31/2023
Have you already tried the --check=none flag?
OOoker8/1/2023
deno bundle --check=none '.\4. Tạo kết quả\4. Tạo kết quả.ts' fibery.js
deno bundle --check=none '.\4. Tạo kết quả\4. Tạo kết quả.ts' fibery.js
and
deno bundle '.\4. Tạo kết quả\4. Tạo kết quả.ts' fibery.js --check=none
deno bundle '.\4. Tạo kết quả\4. Tạo kết quả.ts' fibery.js --check=none
don't work is this the correct install command?
deno install --allow-read --allow-write -f https://deno.land/x/esbuild@v0.18.17
deno install --allow-read --allow-write -f https://deno.land/x/esbuild@v0.18.17
It throws
error: Module not found "https://deno.land/x/esbuild@v0.18.17".
error: Module not found "https://deno.land/x/esbuild@v0.18.17".
deno install https://deno.land/x/esbuild_deno_loader@0.8.1
deno install https://deno.land/x/esbuild_deno_loader@0.8.1
and
deno install https://deno.land/x/emit@0.25.0"
deno install https://deno.land/x/emit@0.25.0"
return Module not found as well
SSyrupThinker8/1/2023
You need to provided a specific file in the module to install, that's why it can't find it:
> deno install -A https://deno.land/x/esbuild@v0.18.17/mod.js
✅ Successfully installed esbuild
/Users/syrup/Library/Application Support/XDG/state/stav/deno/bin/esbuild

~/Downloads
> esbuild --version
0.18.17
> deno install -A https://deno.land/x/esbuild@v0.18.17/mod.js
✅ Successfully installed esbuild
/Users/syrup/Library/Application Support/XDG/state/stav/deno/bin/esbuild

~/Downloads
> esbuild --version
0.18.17
OOoker8/2/2023
Hmm, why can't it auto use mod.js?
Mmarvinh.8/2/2023
@ooker The // @ts-ignore comment only ignores errors in the next line. It doesn't silence all errors in the same file.

Looking for more? Join the community!

Recommended Posts
Streaming FormDataI have `Deno.serve` a HTML page with `<form enctype="multipart/form-data">` with a `file` input. IAstro - Vs code templateI am deploying this app using the deno deploy. My app's root is available at https://antilibrary-asdenodrivers/sqlite and deno-sqlit behave different with multiple `?` argsI wanted to understand why these return different results ```ts Deno.test("DB()", (_) => { // Want to write a small NPM package that's for all contextsdeno, browser and node is this April 2022 resource the best one for this? https://portal.gitnation.oSite runs fine but vscode is filled with errors.Kinda annoying, any ideas why?Is there a way to disable Deno Deploy server timing out in ~5 1/2 minutes?Is there a way to disable Deno Deploy server timing out in ~5 1/2 minutes?Object to tuple of tuple of keys and type?Example: ```ts type SomeType = { owo: string uwu: number } ``` Into ```ts type SomeType = [ ["typescript compiler (38.24MB) included in bundle when importing google's npm:schema-dtsNot sure if this is a bug, but I couldn't see how the package imports the compiler. create a ts fildebug why a file is importedI get a compilation error from a ts file that shouldn't be imported. How can I debug the import chaiCan I rename my deno.land package?Is it possible? What should I do?Deno Compile in NixOS docker imageI'm trying to compile code to deploy to aws lambda functions. I can do it locally on my m1 mac just Discord User Authentication WebsiteCan anyone help me create a web server that allows users to login to their discord account and then Dynamic interfacesIs it possible to have like an interface that has a type entry and when it is a string for example tDisable / Replace Loading FaviconHaven't found anything regarding it and likely is not possible, however I thought I might as well sDeno test Leaking resourcesHi i currently try to get used to deno.test but Deno.readTextFile makes the test end in the followinDeno.Command arg with an asterisk?I am trying to execute a shell command from Deno, where one of the command args contains an asterisk`deno compile` in Nix results in `deno repl` starting instead of actual programI wrote following Nix impure derivation for my Deno app: ```nix packages.api = pkgs.stdenv.mkDerivat`@sentry/node` is throwing an export error on Deno DeployHello, this is my first time using Deno. I was trying to use the `@sentry/node` client on deploy, basync mapIs there anyway using the stdlib to map from one array to another array, with the work being done coHTTP 206 + HTML5 video streaming with Freshhow do I implement an endpoint to stream a video to a HTML video player using HTTP 206 in Fresh? Her