final-form / final-form-focus

🏁 Final Form "decorator" that will attempt to apply focus to the first field with an error upon an attempted form submission
MIT License
83 stars 15 forks source link

Module not found: Can't resolve 'react-final-form' #19

Open afonseca95 opened 4 years ago

afonseca95 commented 4 years ago

Hi, I am trying to use this library, but when import import { Form, Field } from 'react-final-form' show this message: Failed to compile.

./src/components/InputPage1/ContentInputPage1.tsx Module not found: Can't resolve 'react-final-form' in '/Users/afonseca/Desktop/hcw/hcw/src/components/InputPag

I try removing the package-lock.json and enter npm install and npm start but is not working.

This is my package.json { "name": "hcw", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "@types/jest": "^25.1.4", "@types/node": "^13.9.8", "@types/react": "^16.9.29", "@types/react-dom": "^16.9.5", "axios": "^0.19.0", "react": "^16.13.1", "react-dom": "^16.13.1", "react-redux": "^7.1.3", "react-scripts": "3.4.1", "react-semantic-ui-datepickers": "^2.4.0", "semantic-ui-css": "^2.4.1", "semantic-ui-react": "^0.88.2", "typescript": "^3.8.3" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": "react-app" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }

Thank such much .