react-play: ๐Ÿ› [Bug report]: `npm run build` not working

Descrcibe the bug?

site not building in local development & prod

Steps to reproduce the bug?

  1. npm i to install dependencies
  2. npm run dev to run the site
  3. when you want to build the site using npm run build it gives us the error

Expected behavior

.

Desktop (Please provide your system information)

  • Kali Linux

Mobile (Please provide your device information)

No response

Screenshot / Screenshare

reactplay

Relevant log output

No response

Record

Code of Conduct

  • I agree to follow this projectโ€™s Code of Conduct

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 16 (3 by maintainers)

Commits related to this issue

Most upvoted comments

I want to work on this issue. โœ‹๏ธ

Understood! Thanks for explaining and fixing the issue as well @Sachin-chaurasiya.

Hi @priyankarpal, I could not spend time on it past few days. I will try to get something tomorrow.

yes same error @bhansa

here is the error in vs code (local setup)

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve '../node_modules/open' in '/home/pewpew/Desktop/react-play/node_modules/.pnpm/plays@0.7.0/node_modules/plays/test'

Hi friend. Just to know, why do you use โ€œnpm run buildโ€ and you have a problem with pnpm ? Any idea?

If we run pnpm run build, we still get an error

@priyankarpal can you post the error youโ€™re getting while building the project.

I have setup the project in gitpod and getting this error while running npm run build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve '../node_modules/open' in '/workspace/react-play/node_modules/plays/test'