Hi, sorry if this is off topic, i was wondering if...
# support-questions-legacy
z
Hi, sorry if this is off topic, i was wondering if anyone else ran into this issue. I am following https://github.com/supertokens/supertokens-auth-react/issues/233#issuecomment-822305362 in order to implement a custom react UI component for sign in feature. When importing from supertokens in the custom component e.g.
import { StyleProvider } from "supertokens-auth-react/lib/ts/styles/styleContext";
On compile i get
Copy code
./node_modules/supertokens-auth-react/lib/ts/styles/styleContext.tsx 19:5
Module parse failed: Unexpected token (19:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import { NormalisedDefaultStyles, NormalisedPalette, Styles } from "../types";
| 
> type NormalisedStyle = {
|     palette: NormalisedPalette;
|     [x: string]: CSSObject;
my webpack config has a rule with
{ test: /\.tsx?$/, use: 'ts-loader' }
. Has somebody encountered this issue or knows the correct config?