I get this error when copy and pasting into a tsx file in my vue project
a
I get this error when copy and pasting into a tsx file in my vue project
r
hey @Aithusa
can you show some code please?
a
Copy code
ts
import * as React from "react";
import * as SuperTokens from "supertokens-auth-react";
import * as ThirdPartyEmailPassword from "supertokens-auth-react/recipe/thirdpartyemailpassword";
import { Github, Google, Facebook, Apple } from "supertokens-auth-react/recipe/thirdpartyemailpassword";
import Session from "supertokens-auth-react/recipe/session";

SuperTokens.init({
    appInfo: {
        appName: "DevChat",
        apiDomain: "localhost",
        websiteDomain: "localhost",
        apiBasePath: "/auth",
        websiteBasePath: "/auth"
    },
    recipeList: [
        ThirdPartyEmailPassword.init({
            signInAndUpFeature: {
                providers: [
                    Github.init(),
                    Google.init(),
                    Facebook.init(),
                    Apple.init(),
                ],
            },
        }),
        Session.init(),
    ],
});

class SuperTokensReactComponent extends React.Component {
    override render() {
        if (SuperTokens.canHandleRoute()) {
            return SuperTokens.getRoutingComponent();
        }
        return "Route not found";
    }
}

export default SuperTokensReactComponent;
r
hey @jscyo can help out with this
j
Hey @Aithusa we are working on fixing this
r
Hey @Aithusa we have updated our guide for vue js integration. Please have a look
If you are still seeing the older version, then please make sure to clear cache and hard reload
a
How do I solve this problem
Copy code
sh
ERROR in ./src/views/AuthView.vue?vue&type=template&id=62fe0c27&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/AuthView.vue?vue&type=template&id=62fe0c27&ts=true) 8:27

Module parse failed: Unexpected token (8:27)
File was processed with these loaders:
 * ./node_modules/vue-loader/dist/templateLoader.js
 * ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| ]
| 
> export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
|   return (_openBlock(), _createElementBlock("main", null, _hoisted_2))
| }
r
how did you get this problem?
a
I did what was in the tutorial
r
@jscyo can help here
a
Nevermind I think I figured it out
r
ah ok
2 Views