Recently when I was developing for a React application that I hadn’t pulled from the master branch in a while, I came across the following error when trying to start the app:

Error: No valid exports main found for ‘/project-path/node_modules/colorette’

Since I saw node_modules, I instinctually felt that something was conflicting with either my npm or node versions, so I ran the commands to check on those:

eto-tremaine$ npm -v
5.6.0

eto-tremaine$ node -v
v13.3.0

#javascript #node #nodejs

How to fix “Error: No valid exports main found for ‘/node_modules/colorette’”
8.40 GEEK