From 6f0d165f7fdbeef4fb01de30e6f702c792142688 Mon Sep 17 00:00:00 2001 From: Steven Eubank <47563310+smeubank@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:11:01 +0100 Subject: [PATCH 1/2] Deno arguments are not in the correct order When testing this Deno CLI complained about the order of arguments in the script ```me@me deno-edge-hello-world % deno run index.ts --allow-net=xxxxx.ingest.sentry.io Permission flags have likely been incorrectly set after the script argument. To grant permissions, set them before the script argument. For example: deno run --allow-read=. main.js error: Module not found "file:///Users/steveneubank/Desktop/deno-edge-hello-world/index.ts".```` --- platform-includes/getting-started-config/javascript.deno.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-includes/getting-started-config/javascript.deno.mdx b/platform-includes/getting-started-config/javascript.deno.mdx index 31fde4b2f87d8..b50f239b372ad 100644 --- a/platform-includes/getting-started-config/javascript.deno.mdx +++ b/platform-includes/getting-started-config/javascript.deno.mdx @@ -15,5 +15,5 @@ To ensure the SDK can send events, you should enable network access for your ingestion domain: ```bash -deno run index.ts --allow-net=___ORG_INGEST_DOMAIN___ +deno run --allow-net=___ORG_INGEST_DOMAIN___ index.ts ``` From 8f083adac3e6cc3d0d302c3c926fd63dd8f5f922 Mon Sep 17 00:00:00 2001 From: Steven Eubank <47563310+smeubank@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:25:00 +0100 Subject: [PATCH 2/2] source files script same issue --- .../getting-started-sourcemaps/javascript.deno.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-includes/getting-started-sourcemaps/javascript.deno.mdx b/platform-includes/getting-started-sourcemaps/javascript.deno.mdx index bc05298a97d6d..4cbd635d5db95 100644 --- a/platform-includes/getting-started-sourcemaps/javascript.deno.mdx +++ b/platform-includes/getting-started-sourcemaps/javascript.deno.mdx @@ -3,5 +3,5 @@ To ensure the SDK can include your source code in stack traces, you should enable read access for your source files: ```bash -deno run index.ts --allow-read=./src +deno run --allow-read=./src index.ts ```