Replies: 2 comments
-
Looks like, oddly enough, this was caused by lingering dead imports? This fixed it: [patch.diff](https://gist.github.com/punkpeye/02129bfbedef832e22aa070c5db4025d#file-patch-diff)
diff --git a/app/routes/_authenticated/_app/settings/workspace/subscription/_index/_route.tsx b/app/routes/_authenticated/_app/settings/workspace/subscription/_index/_route.tsx
index d8921e39..0fd71a47 100644
--- a/app/routes/_authenticated/_app/settings/workspace/subscription/_index/_route.tsx
+++ b/app/routes/_authenticated/_app/settings/workspace/subscription/_index/_route.tsx
@@ -1,6 +1,5 @@
import { createMeta } from '#app/factories/createMeta.ts';
import { defineAuthenticatedLoader } from '#app/remix/defineAuthenticatedLoader.server.ts';
-import { redirect } from '#app/remix/redirect.server.ts';
import { pool, sql } from '#app/services/slonik.server.ts';
import { css } from '#app/styled-system/css/index.js';
import { dayjs } from '#app/utilities/date.ts';
diff --git a/app/routes/_authentication/sign-out/_route.tsx b/app/routes/_authentication/sign-out/_route.tsx
index dd6c8fa0..32dbd86c 100644
--- a/app/routes/_authentication/sign-out/_route.tsx
+++ b/app/routes/_authentication/sign-out/_route.tsx
@@ -1,7 +1,6 @@
import { useAutoSubmitForm } from '#app/hooks/useAutoSubmitForm.ts';
import { defineAction } from '#app/remix/defineAction.server.ts';
-import { redirect } from '#app/remix/redirect.ts';
-import { redirectDocument } from '#app/remix/redirectDocument.ts';
+import { redirectDocument } from '#app/remix/redirectDocument.server.ts';
import { ProgressIndicator } from '#app/routes/_authenticated/_app/playground/~uid/ProgressIndicator.tsx';
import {
addToast, |
Beta Was this translation helpful? Give feedback.
0 replies
-
"Lingering dead imports" still can have side-effects depending on server symbols. Especially since server code naturally tends to be a non-analyzable hodgepodge of function calls at the top module level. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
and here is the entire
_route.tsx
@brophdawg11 There needs to be some sort of an escape hatch for these situations.
Beta Was this translation helpful? Give feedback.
All reactions