marvinh.
Migrating from Node to Deno
5. The linter can add the appropriate extension automatically, see https://docs.deno.com/lint/rules/no-sloppy-imports/
6. You likely have the aliasing defined in
tsconfig.json
. Deno doesn't read that. Add the alias in deno.json
for Deno to pick it up:
5 replies
error: deno task couldn't find deno.json(c) on GitHub Action
Looks like you forgot to clone the repository in that action file. To clone your repository inside the action runner you must use the
actions/checkout
official GH action https://github.com/actions/checkout somwhere in your workflow2 replies
Run JSR library from NPX
I see. Looks like the
jsr run
command invokes the active package manager's script
feature. It doesn't run the package you pass to it https://github.com/jsr-io/jsr-npm/blob/52f93c31b00661a6cf2ba40a9663e02e5b199506/src/commands.ts#L194-L201 . I guess a workaround would be to import the package in a local file and run that file9 replies
Run JSR library from NPX
Looks like Node doesn't support
import.meta.main
https://github.com/nodejs/node/issues/49440 . Also this SO question is related https://stackoverflow.com/questions/45136831/node-js-require-main-module9 replies
Exclude packages from test coverage
That sounds like a bug. Anything inside dependencies should be excluded by default. If you open a bug report with a code snippet that reproduces the issue, the team can fix it. To open an issue follow this link: https://github.com/denoland/deno/issues/new/choose
3 replies
koa-router behaves different in Deno
This was fixed with https://github.com/denoland/deno/pull/27105 . The fix was included in Deno
2.1.2
To resolve this issue update your Deno version to 2.1.2
by running deno upgrade
4 replies
Next.JS with Deno 2.0 has "hydration" error after creation.
I can't find an issue for that in our tracker. What are the steps to reproduce that error? I've created a new project with
deno run -A npm:create-next-app@latest
but I'm not getting that error11 replies
Is there a way to run a command from a package in a workspace?
No, there is no such feature in Deno at the moment. There is a related feature request here https://github.com/denoland/deno/issues/24991
2 replies
Error occurs when using React third-party component library
The error occurs when Preact and React are mixed together. JSX nodes need to go through Preact for Preact to render them. Make sure you're setting up the react to preact/compat aliasing properly. Here is an example of what it should look like:
https://github.com/denoland/fresh/issues/1491#issuecomment-1643407629
2 replies
Navigating back after interacting with a Partial
Thanks for reporting, this issue seems similar to this one https://github.com/denoland/fresh/issues/2559 . I haven't yet had time to look into that one yet
4 replies
Missing source code when debugging via "deno run --inspect"
Definitely a new bug. We fixed the older one and it sounds like something broke again. So far it seems like on the Chrome side, but needs further investigation. Opened https://github.com/denoland/deno/issues/26512 to keep track of it
2 replies
Vinxi project such as solid-start doesn't work with Deno 2.0
That sounds like a bug. Can you file an issue for that here https://github.com/denoland/deno/issues/new/choose ?
4 replies