Facing issue on upload site in production mode

Hi Friends,

I have completed my site in frontity in development mode but when i have used "npx frontity build’ command for production mode then i have faced below error.

Error: ./node_modules/react-visibility-sensor/dist/visibility-sensor.js
Module not found: Error: Can't resolve 'React' in 

Any idea for this please help me.

Hi @bhagvan.vrinsofts,

Try to remove the node_modules folder, and the package-lock.json file, run npm i again, and then npx frontity build