A: Remove the node_modules
and package-lock.json
from the project and install the packages again. This step will help in resolving potential conflicts or issues with dependencies.
rm -rf node_modules package-lock.json
npm install
Alternatively, you can run the following command, which is a custom script configured in package.json
to perform the same.
npm run ready
A: Delete the dist folder containing the js compiled files as Playwright handles the typescript compilation internally and this should eliminate the conflict.