5 Replies
side nav is not working as it should and i am having this warning
webpack compiled with 1 warning
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.
babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
Few things, if you don't have to be using CRApp I would try out Vite/Next/Remix as all are more modern solutions (react docs even tell you this)
your nav should be in a <nav> element
lastly I would avoid using vh or setting strict heights on elements period.
Its hard to tell whats going on without a working example though.
You can try putting it in a stackblitz and maybe we can help more.
Or abstract the issue into html/css and put in a codepen.
what are these use for?
i dont know about them
Look them up, also read the getting started React docs