Sebastian
Sebastian5d ago

Issues with Type Stripping

Not entirely sure where to ask this question. I am getting issues with the Deno Adapter for Deno Deploy that it does not support Type Stripping. This means I cannot run the Clerk integration in an Astro project. Any ways around this? error: [ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING]: Stripping types is currently unsupported for files under node_modules, for "file:///Users/sebastian/workspace/github.com/bastianplsfix/astro-clerk-issue/node_modules/.deno/@deno+astro-adapter@0.3.1/node_modules/@deno/astro-adapter/src/__deno_imports.ts" Here is a mock repo. https://github.com/bastianplsfix/astro-clerk-issue How to replicate: 1. deno install --allow-scripts 2. deno task build 3. deno task preview
GitHub
GitHub - bastianplsfix/astro-clerk-issue
Contribute to bastianplsfix/astro-clerk-issue development by creating an account on GitHub.
2 Replies
Sebastian
SebastianOP4d ago
@Aleksandra | Clerk
Aleksandra | Clerk
Just want to add some context here that I was able to run the app correctly when I downgraded @deno/astro-adapter to 0.2.x. I'm not sure if/how Clerk interferes here, but if it's something on our (Clerk) side, let me know. Also, it's enough to have clerk as integration for this to break - it's not used anywhere else:
import { defineConfig } from "astro/config";
import deno from "@deno/astro-adapter";
import clerk from "@clerk/astro";

export default defineConfig({
output: "server",
adapter: deno(),
integrations: [
clerk({
enableEnvSchema: false
}),
],
})
import { defineConfig } from "astro/config";
import deno from "@deno/astro-adapter";
import clerk from "@clerk/astro";

export default defineConfig({
output: "server",
adapter: deno(),
integrations: [
clerk({
enableEnvSchema: false
}),
],
})

Did you find this page helpful?