Closed Luxcium closed 6 years ago
then install latest ts-jest which is 23.10.4 ;-)
instalinstallinging "ts-jest": "^23.10.4", does not fix my problem I still have same errors messages as above ...
That's odd, are you sure to have all latest versions?
its react-scripts-ts who requires a older version
I should post this issue at that level I assume ... sorry for the trouble newbies are gonna noob you know
Try a wipe of those, like:
rm -rf node_modules
yarn add --dev ts-jest@latest jest@latest typescript@latest react-scripts-ts@latest
but yeah in case that doesn't fix it, post to react-scripts-ts
sorry for the trouble
no problem ;-)
rm -rf node_modules; rm -rf package.lock.json; npm install ;npm install -D ts-jest@latest jest@latest typescript@latest react-scripts-ts@latest
I still have many issue with my configuration but I tried to install other dependency but it give me other error message that are at the end circula many of which problems are not related to this repo any way ...
npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN ts-jest@22.0.1 requires a peer of jest@^22.0.1 || ^22.1.0-alpha.1 || ^23.0.0-alpha.1 but none is installed. You must install peer dependencies yourself. npm WARN ts-jest@22.0.1 requires a peer of typescript@2.x but none is installed. You must install peer dependencies yourself. npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself. npm WARN fork-ts-checker-webpack-plugin@0.2.10 requires a peer of typescript@^2.1.0 but none is installed. You must install peer dependencies yourself. npm WARN fork-ts-checker-webpack-plugin@0.2.10 requires a peer of webpack@^2.3.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself. npm WARN sw-precache-webpack-plugin@0.11.4 requires a peer of webpack@^1 || ^2 || ^2.1.0-beta || ^2.2.0-beta || ^3 but none is installed. You must install peer dependencies yourself.ànpm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
it obviously goes beyond the scope of this post ... so I think I will keep it like this for now since I am in development phase of my project
I might have too much stuff (as you probably figured out I am a learning developper and I install a lot of stuff doing tutorials I will clean it after the project is completed)
I am getting a little off topic but if it is useful for someone to know what I have installed there is the list : "devDependencies": { "@babel/cli": "^7.1.2", "@babel/core": "^7.1.2", "@babel/generator": "^7.0.0", "@babel/parser": "^7.1.0", "@babel/plugin-transform-arrow-functions": "^7.0.0", "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.1.0", "@types/autoprefixer": "^6.7.3", "@types/babel-core": "^6.25.5", "@types/bcryptjs": "^2.4.2", "@types/body-parser": "^1.17.0", "@types/bootstrap": "^4.1.2", "@types/clean-webpack-plugin": "^0.1.2", "@types/config": "0.0.34", "@types/cookie-parser": "^1.4.1", "@types/csv-parse": "^1.1.11", "@types/csv-stringify": "^1.4.2", "@types/eslint": "^4.16.3", "@types/eslint-plugin-prettier": "^2.2.0", "@types/express": "^4.16.0", "@types/gravatar": "^1.4.28", "@types/html-minifier": "^3.5.2", "@types/html-webpack-plugin": "^3.2.0", "@types/joi": "^13.6.0", "@types/jquery": "^3.3.10", "@types/js-beautify": "^1.8.0", "@types/jsonwebtoken": "^7.2.8", "@types/lodash": "^4.14.116", "@types/material-ui": "^0.21.5", "@types/materialize-css": "^1.0.4", "@types/mini-css-extract-plugin": "^0.2.0", "@types/mongodb": "^3.1.9", "@types/mongoose": "^5.2.19", "@types/node": "^10.12.0", "@types/optimize-css-assets-webpack-plugin": "^1.3.3", "@types/package-json": "^4.0.1", "@types/passport": "^0.4.6", "@types/passport-google-oauth": "^1.0.39", "@types/passport-jwt": "^3.0.1", "@types/passport-strategy": "^0.2.35", "@types/prettier": "^1.13.2", "@types/react": "^16.4.17", "@types/react-dom": "^16.0.9", "@types/react-router-dom": "^4.3.1", "@types/request": "^2.47.1", "@types/uglify-js": "^3.0.3", "@types/uglifyjs-webpack-plugin": "^1.1.0", "@types/utf8": "^2.1.6", "@types/webpack": "^4.4.13", "@types/webpack-dev-server": "^3.1.1", "autoprefixer": "^9.1.5", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-loader": "^8.0.2", "babel-preset-env": "^1.7.0", "babel-preset-minify": "^0.4.3", "babel-preset-react": "^6.24.1", "clean-webpack-plugin": "^0.1.19", "create-react-app": "^2.0.4", "css-loader": "^1.0.0", "cssnano": "^4.1.0", "eslint": "^5.6.0", "eslint-config-airbnb": "^17.1.0", "eslint-config-prettier": "^3.0.1", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jsx-a11y": "^6.1.1", "eslint-plugin-prettier": "^2.6.2", "eslint-plugin-react": "^7.11.1", "file-loader": "^2.0.0", "html-beautify-webpack-plugin": "^1.0.5", "html-loader": "^0.5.5", "html-minifier": "^3.5.20", "html-webpack-plugin": "^3.2.0", "jest": "^23.6.0", "js-beautify": "^1.8.6", "mini-css-extract-plugin": "^0.4.3", "mocha": "^5.2.0", "nodemon": "^1.18.4", "optimize-css-assets-webpack-plugin": "^5.0.1", "parsley": "^0.1.0", "path": "^0.12.7", "postcss-loader": "^3.0.0", "precss": "^3.1.2", "prettier": "^1.14.3", "react-scripts-ts": "^3.1.0", "sass-loader": "^7.1.0", "style-loader": "^0.23.0", "ts-jest": "^23.10.4", "ts-loader": "^5.1.1", "ts-node": "^7.0.1", "tslint": "^5.11.0", "tslint-config-prettier": "^1.15.0", "tslint-eslint-rules": "^5.4.0", "tslint-react": "^3.6.0", "typescript": "^3.1.3", "typescript-eslint-parser": "^20.0.0", "uglify-js": "^3.4.9", "uglifyjs-webpack-plugin": "^2.0.1", "webpack": "^4.20.2", "webpack-cli": "^3.1.2", "webpack-dev-middleware": "^3.4.0", "webpack-dev-server": "^3.1.9" }, "dependencies": { "@fortawesome/fontawesome-free": "^5.3.1", "@fortawesome/fontawesome-svg-core": "^1.2.4", "@fortawesome/free-solid-svg-icons": "^5.3.1", "@fortawesome/react-fontawesome": "^0.1.3", "@material-ui/core": "^3.2.0", "@material-ui/icons": "^3.0.1", "@types/jest": "^23.3.5", "ajv": "^5.5.2", "bcryptjs": "^2.4.3", "body-parser": "^1.18.3", "bootstrap": "^4.1.3", "config": "^2.0.1", "cookie-parser": "^1.4.3", "csv": "^4.0.0", "d3": "^5.7.0", "dotenv": "^6.0.0", "express": "^4.16.3", "gravatar": "^1.6.0", "joi": "^13.6.0", "jquery": "^3.3.1", "jsonwebtoken": "^8.3.0", "lodash": "^4.17.11", "materialize-css": "^1.0.0-rc.2", "mongodb": "^3.1.6", "mongoose": "^5.3.0", "passport": "^0.4.0", "passport-google-oauth20": "^1.0.0", "passport-hmac": "^1.0.4", "passport-jwt": "^4.0.0", "passport-strategy": "^1.0.0", "popper.js": "^1.14.4", "puppeteer": "^1.9.0", "qs": "^6.5.2", "react": "^16.5.2", "react-dom": "^16.5.2", "react-router-dom": "^4.3.1", "react-scripts": "^2.0.5", "request": "^2.88.0", "throng": "^4.0.0", "tooltip.js": "^1.3.0", "utf8": "^3.0.0"
@luxcium if you use yarn, you can know what asked a specific version to be installed:
yarn why ts-jest
Anyway, it's weird that, as a new dev, you're on a project that requires so many dependencies!
Issue :
npm WARN ts-jest@22.0.1 requires a peer of jest@^22.0.1 || ^22.1.0-alpha.1 || ^23.0.0-alpha.1 but none is installed. You must install peer dependencies yourself.
npm WARN ts-jest@22.0.1 requires a peer of typescript@2.x but none is installed. You must install peer dependencies yourselsf
Expected behavior :
should it be dealing with it by itself ? I think yes ... I want to be able to
use : "typescript": "^3.1.3"
and use : "jest": "^23.6.0"