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

TypeError: createStore.default is not a function #1643

Open
loupzeur opened this issue Mar 17, 2024 · 0 comments
Open

TypeError: createStore.default is not a function #1643

loupzeur opened this issue Mar 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@loupzeur
Copy link

Hello,
I'm having an issue after installing and trying to use this library on a reactjs project :

using the given code in the documentation :

import createStore from 'react-auth-kit/createStore';
//[...]
//some other code ...
//[...]
  const store = createStore<IUserData>({
    authName:'_auth',
    authType:'cookie',
    cookieDomain: window.location.hostname,
    cookieSecure: window.location.protocol === 'https:',
  });

I'm having this issue, are there any missing dependencies ?
image

My dependencies are :

  "dependencies": {
    "@radix-ui/react-navigation-menu": "^1.1.4",
    "@radix-ui/react-slot": "^1.0.2",
    "@types/react-dom": "^18.2.21",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "input-otp": "^1.2.0",
    "lucide-react": "^0.354.0",
    "react": "^18.2.0",
    "react-auth-kit": "^3.1.2",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.22.3",
    "rxjs": "^7.8.1",
    "tailwind-merge": "^2.2.1",
    "tailwindcss": "^3.4.1",
    "tailwindcss-animate": "^1.0.7"
  }

My tsconfig config regarding ts :

    "lib": ["ESNext","dom"],
    "target": "ESNext",
    "module": "ESNext",
    "moduleDetection": "force",
    "jsx": "react-jsx",
@loupzeur loupzeur added the question Further information is requested label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant