skip to Main Content

Reactjs – Why am I receiving the error "module 'msw' has no exported member rest" for my import "import { rest } from 'msw'"

I am following the example here: https://testing-library.com/docs/react-testing-library/example-intro/ At the "Step-By-Step" section under "Imports" it says this: // import dependencies import React from 'react' // import API mocking utilities from Mock Service Worker import {rest} from 'msw' import {setupServer} from 'msw/node'…

VIEW QUESTION

Nextjs Firebase auth state not persisting

I have no idea why firebase auth is not persisting. My project is super simple so far, i have this sign in function. await signInWithEmailAndPassword(auth, email, password); And in the layout.tsx I have the onAuthStateChange const unsubscribe = onAuthStateChanged(auth, (user)…

VIEW QUESTION
Back To Top
Search