Component not running properly with now-cli develop, only works on instance

Devin V_
Giga Expert

 

I am making the counter custom component example from the developer site: dev site counter component

My component ONLY works in my instance, but NOT when I am use now-cli develop

When I use the now-cli develop, it will open the component but never set the initial state or allow for me to select the buttons.

The now-cli develop will continue to update the app properly if I make any changes, but I still have the same issue where not initial state is set and the buttons are unclickable.

find_real_file.png

find_real_file.png

 

Here is the same component on my instance:
find_real_file.png

 

EDIT:
So the VM30:2 error also happens when I am just setting up the now-cli scaffolding, and I am still unable to click a simple button element.

This implies it has nothing to do with the index.js

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Devin,

1) Add "react-error-overlay": "6.0.9" into your package.json file, inside devDependencies

2) Run npm i --save-dev react-error-overlay@6.0.9 from your project folder.

This should solve your purpose.

find_real_file.png

Thanks,

Kush

View solution in original post

5 REPLIES 5

Thank you that correct the issue