• othiagocruz

    othiagocruz

    1 year ago
    {
      "compilerOptions": {
        "baseUrl": ".",
        "target": "es5",
        "lib": [
          "dom",
          "dom.iterable",
          "esnext"
        ],
        "allowJs": true,
        "skipLibCheck": true,
        "strict": true,
        "forceConsistentCasingInFileNames": true,
        "noEmit": true,
        "esModuleInterop": true,
        "module": "esnext",
        "moduleResolution": "node",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "jsx": "preserve"
      },
      "exclude": [
        "node_modules"
      ],
      "include": [
        "next-env.d.ts",
        "**/*.ts",
        "**/*.tsx"
      ]
    }
  • r

    rp

    1 year ago
    thanks
  • othiagocruz

    othiagocruz

    1 year ago
    oh there is the baseUrl thing i added
  • othiagocruz

    othiagocruz

    1 year ago
    or maybe it was already there? :thonk:266033917872570369
  • r

    rp

    1 year ago
    i added the above tsconfig.json file, but it still works for me. What else do I need to do to get the error?
  • r

    rp

    1 year ago
    the source code in the with-next example is written in JS btw.
  • othiagocruz

    othiagocruz

    1 year ago
    mm i do have a Layout component wrapping the component on _app.tsx, let me check if removing that works
  • othiagocruz

    othiagocruz

    1 year ago
    yeah still the same error, this is weird
  • othiagocruz

    othiagocruz

    1 year ago
    javascript
    if (typeof window !== "undefined") {
      SuperTokensReact.init({
        useReactRouterDom: false,
        appInfo: {
          appName: "storefront",
          websiteDomain,
          apiDomain: websiteDomain,
          apiBasePath,
        },
        recipeList: [SessionReact.init()],
      })
    } else {
      SuperTokensNode.init({
        supertokens: {
          connectionURI: process.env.SUPERTOKENS_DOMAIN || "",
          apiKey: process.env.SUPERTOKENS_API_KEY,
        },
        appInfo: {
          appName: "storefront",
          apiDomain: websiteDomain,
          websiteDomain,
          apiBasePath,
        },
        recipeList: [SessionNode.init()],
      })
    }
  • othiagocruz

    othiagocruz

    1 year ago
    i also modified the init function