OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

'prop-types' should be listed in the project's dependencies, not devDependencies

  • Thread starter Thread starter Rahul Yadav
  • Start date Start date
R

Rahul Yadav

Guest
I ran npm install prop-types --save-dev and started getting this error

'prop-types' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies

Later I uninstalled the dependency by running npm uninstall prop-types --save-dev and installed again by running npm install prop-types --save

Still the error doesn't go

'prop-types' should be listed in the project's dependencies. Run 'npm i -S prop-types' to add it import/no-extraneous-dependencies

<p>I ran <code>npm install prop-types --save-dev</code>
and started getting this error</p>
<p><code>'prop-types' should be listed in the project's dependencies, not devDependencies import/no-extraneous-dependencies</code></p>
<p>Later I uninstalled the dependency by running <code>npm uninstall prop-types --save-dev</code> and installed again by running <code>npm install prop-types --save</code></p>
<p>Still the error doesn't go</p>
<p><code>'prop-types' should be listed in the project's dependencies. Run 'npm i -S prop-types' to add it import/no-extraneous-dependencies</code></p>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top