cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 493 forks source link

Failed to start develepment server for app #93

Open rapiz1 opened 1 year ago

rapiz1 commented 1 year ago

Thanks for your great work. I want to make some local modifications to play around. However, I failed to run the dev server.

Reproduce

For app, here's what I tried:

  1. npm install, which finished without erorrs.
  2. npm start. It failed to compile.
Failed to compile.

Module not found: Error: Can't resolve '/node_modules/@ffmpeg/core/dist/ffmpeg-core.js' in 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/@ffmpeg/ffmpeg/src/browser'
WARNING in ./node_modules/boundary/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/boundary/src/index.ts' file: Error: ENOENT: no such file or directory, open 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/boundary/src/index.ts'

WARNING in ./node_modules/structured-source/lib/structured-source.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/structured-source/src/structured-source.ts' file: Error: ENOENT: no such file or directory, open 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/structured-source/src/structured-source.ts'

ERROR in ./node_modules/@ffmpeg/ffmpeg/src/browser/defaultOptions.js 6:92-166
Module not found: Error: Can't resolve '/node_modules/@ffmpeg/core/dist/ffmpeg-core.js' in 'workdir/chatgpt-playground/chat-with-gpt/app/node_modules/@ffmpeg/ffmpeg/src/browser'

webpack compiled with 1 error and 2 warnings
Files successfully emitted, waiting for typecheck results...

Environment

Archlinux npm -v: 8.19.2

So I assume it's a npm issue. What version do you use for development? And what about yarn, pnpm?

rapiz1 commented 1 year ago

https://github.com/chengsokdara/use-whisper/issues/19

rapiz1 commented 1 year ago

npm install @ffmpeg/core can work around this issue.

cogentapps commented 1 year ago

Would you be able to test the latest version and see if you have the same issue?