tautorn / covid19-dio Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://covid19-dio-zeta.vercel.app
Home Page: https://covid19-dio-zeta.vercel.app
Olá professor! tudo bom?
Meu projeto está apresentando esse erro:
TypeError: Expected container to be an Element, a Document or a DocumentFragment but got undefined.
checkContainerType
node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:252
249 |
250 | function checkContainerType(container) {
251 | if (!container || !(typeof container.querySelector === 'function') || !(typeof container.querySelectorAll === 'function')) {
252 | throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + ".");
253 | }
254 |
255 | function getTypeName(object) {
Eu não estou conseguindo entender qual parte do projeto está gerando esse erro, teria como vc me ajudar?
Gratidão ^^
Olá, professor.
Estava seguindo o passo a passo para criar o projeto, mas quando insiro o comando i @material-ui/core, ele retorna esse erro:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\bls19\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\bls19\AppData\Local\npm-cache_logs\2022-05-30T15_42_49_142Z-debug-0.log
Não sei como resolver e já até tentei recomeçar o projeto.
Desde já, agradeço a atenção.
Se verificarem, a url https://coronavirus-19-api.herokuapp.com/countries está inválida.
Gostaria de saber se alguém ou o @Tautorn teria uma sugestão de outra api pública semelhante.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.