This repository serves as a reproduction for the error mswjs/msw#1965. The error log indicates the issue as "Package ./node is not exported from package Users/User/msw-1965-bug/node_modules/msw." The problem occurs specifically when running yarn build
or yarn start
, while yarn test
works without any issues.
To reproduce the error, follow these steps:
-
Clone the repository:
git clone "the repo"
-
Change into the repository directory:
cd <repo-directory>
-
Install dependencies:
yarn install
-
Build the project:
yarn build
-
Start the application:
yarn start
-
Run tests:
yarn test