learn-co-curriculum / react-presentation-components-lab Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
SimpleComponent and SimplerComponent do different things and SimpleComponent has more functionality. This lesson fails to teach me how to similarly modify the SimplerComponent div without setting state inside the component.
When I try to view the lab on the browser, I get an error: "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
Every time I try to npm install
on a particular lab, I get a long list of errors with a yellow WARN message to the left of each error. Then, I am recommended to run npm audit fix
. This work around sometimes worked on some labs, but recently, running npm start
has been suggesting me to do the following:
To fix the dependency tree, try following the steps below in the exact order:
Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
Delete node_modules in your project folder.
Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.
Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.Check if /Users/jasurabdullin/Desktop/flatironschool/4-module/6-advanced-components/react-presentation-components-lab-dc-web-102819/node_modules/webpack is outside your project directory.
For example, you might have accidentally installed something in your home folder.Try running npm ls webpack in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed webpack.
Previously, I was executing Step 1-4 after which running npm start
would work and start the react-server
However, for this lab, none of my previous fixes are working. Should I install yarn or is this a different kind of issue?
Both line 1s have the word Here twice on cloning.
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.