Thomas
Thomas
DDeno
Created by Thomas on 12/9/2024 in #help
Separate importmap file for static website
I have a folder in my Deno app for a static Website. The content could look like this:
// index.html
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="importmap" src="importmap.json"></script>
<script type="module" src="main.js"></script>
</head>
<body></body>
</html>
// index.html
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="importmap" src="importmap.json"></script>
<script type="module" src="main.js"></script>
</head>
<body></body>
</html>
// importmap.json
{
"imports": {
"@fullcalendar/core": "https://cdn.skypack.dev/@fullcalendar/core@6.1.15"
}
}
// importmap.json
{
"imports": {
"@fullcalendar/core": "https://cdn.skypack.dev/@fullcalendar/core@6.1.15"
}
}
// main.js
import { Calendar } from '@fullcalendar/core';
// main.js
import { Calendar } from '@fullcalendar/core';
And I use an importmap.json for this Website. However, Deno complains with the following error message: Relative import path "@fullcalendar/core" not prefixed with / or ./ or ../ and not in import map from "main.js" Hint: Use [deno add @fullcalendar/core] to add the dependency.deno(resolver-error) But, I don't want to add @fullcalendar/core or other website libs to the deno.json. Server-Side and Client-Side libs should remain separate. How can I prevent Deno from detecting an error here?
2 replies
DDeno
Created by Thomas on 10/21/2024 in #help
Raspberry Pi GPIO via Deno
Does anyone have experience with controlling Rasperry Pi GPIO via Deno?
3 replies
DDeno
Created by Thomas on 7/20/2024 in #help
Demo for Desktop App
Does anyone have experience in developing desktop applications? Webiew and WebUi don't seem to be ready yet. Also, the flag "--no-teriminal" does not work.
10 replies
DDeno
Created by Thomas on 7/9/2024 in #help
Is dynamic import a slow type?
No description
8 replies
DDeno
Created by Thomas on 5/7/2024 in #help
reflect-metadata on Deno Deploy not working?
6 replies
DDeno
Created by Thomas on 3/27/2024 in #help
How to install jupyter using deno v1.41.x
According to the documentation https://docs.deno.com/runtime/manual/tools/jupyter the command should be deno jupyter --unstable --instal. This leads to an error because --unstable no longer exists. But apparently there is also no flag named --unstable-jupyter? Is this a bug?
4 replies
DDeno
Created by Thomas on 3/9/2024 in #help
Best practice for releasing a deno package on GitHub
Is there a best practice for the release process of a Deno library on GitHub? I use semantic-release for node libraries. Automating the release & (publishing to jsr.io) can still be quite helpful for libraries.
6 replies
DDeno
Created by Thomas on 3/5/2024 in #help
Should deno install work with jsr?
What am I doing wrong? When I try to install a CLI from jsr.io and then use it, I get an error message: Install (example):
deno install --allow-read --allow-run -n dx -c ./deno.json jsr:@dx/dx
deno install --allow-read --allow-run -n dx -c ./deno.json jsr:@dx/dx
Execute:
dx --version
dx --version
Error:
error: Module not found "jsr:@dx/dx".
5 replies
DDeno
Created by Thomas on 3/2/2024 in #help
List of available demo commands
Is there a programmatic way to get a list of all possible deno commands? Something like:
const commands = ['run', 'test', ...]!
const commands = ['run', 'test', ...]!
2 replies
DDeno
Created by Thomas on 2/16/2024 in #help
Use Deno permissions in your own CLI
If I create a CLI with Deno, can I somehow reuse or pass on the permissions?
> mycli --allow-read
> mycli --allow-read
2 replies
DDeno
Created by Thomas on 2/18/2023 in #help
Error with relativ import path after "deno install"
Is it possible that imports in deno.json are ignored after "deno install"?
deno run ./my-cli.ts
deno run ./my-cli.ts
This works fine
deno install ./my-cli.ts

my-cli
deno install ./my-cli.ts

my-cli
But this throws an error: error: Relative import path "std/fmt/colors.ts" not prefixed with / or ./ or ../ at .../handler.ts:1:29
6 replies