Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Remix #1047

Open
liliwei25 opened this issue Apr 26, 2024 · 0 comments
Open

Integration with Remix #1047

liliwei25 opened this issue Apr 26, 2024 · 0 comments

Comments

@liliwei25
Copy link

Question

Hi @samchon! thanks for creating this amazing library! I am trying to add typia to Remix but I can't get it to work. I tried transformer mode and I got this error.

Error: Error on typia.misc.validatePrune(): no transform has been configured.

I then tried to follow the integration for Vite and got this error

app/routes/_auth/route.tsx:14:25
    14 export default function Auth() {
                               ~~~~
    An outer value of 'this' is shadowed by this container.
app/routes/_auth/route.tsx:34:6 - error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

34   }, this);

this is my current vite.config.ts

import { vitePlugin as remix } from "@remix-run/dev";
import { installGlobals } from "@remix-run/node";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import react from '@vitejs/plugin-react'
import typescript from "rollup-plugin-typescript2";

installGlobals();

export default defineConfig({
  esbuild: false,
  plugins: [react(), typescript(), remix(), tsconfigPaths()],
});

any help would be greatly appreciated! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant