Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #969

Open
sadyaz64 opened this issue Jan 2, 2025 · 4 comments
Open

error #969

sadyaz64 opened this issue Jan 2, 2025 · 4 comments

Comments

@sadyaz64
Copy link

sadyaz64 commented Jan 2, 2025

Describe the bug

Cannot find module 'chalk' imported from 'E:/bolt/bolt.diy/app/utils/logger.ts'

Link to the Bolt URL that caused the error

http://localhost:5173/

Steps to reproduce

npm run dev

Expected behavior

can not open the chat

Screen Recording / Screenshot

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Provider Used

No response

Model Used

No response

Additional context

No response

@leex279
Copy link

leex279 commented Jan 2, 2025

Please provide more infos. With this little its not possible to help you.

I would recommend searching for topics in the official community and if you dont find anything, open your own with more details:
https://thinktank.ottomator.ai/

Also you can watch my "Windows Installation Bolt.diy Tutorial" on youtube. Maybe it helps:
https://www.youtube.com/channel/UC_a85mUHqsy5j0CYCgLnkEQ

@AnderRedna
Copy link

I have the same problem.

@SeanClosson
Copy link

I do as well. Here's some more info:

Describe the bug
Cannot find module 'chalk' imported from '/app/app/utils/logger.ts'

Link to the Bolt URL that caused the error
http://localhost:5173/

Steps to reproduce

  1. Fresh clone of repo
  2. docker build . --target bolt-ai-development
  3. docker-compose --profile development up
  4. open web browser to URL "http://localhost:5173"

Expected behavior
can not open the chat

Screen Recording / Screenshot
image

Platform
OS: Windows with WSL 2
Browser: Edge & Chrome
Version: Edge 131.0.2903.112 and Chrome 131.0.6778.205
Provider Used
n/a

Model Used
n/a

Additional context
I tried explicitly adding chalk via npm install -g chalk (successfully installed) and followed repo steps 2 thru 4 with the same result.

Logs from container:
2025-01-02 15:35:59 2025-01-02 15:35:59 9:35:59 PM [vite] Error when evaluating SSR module /app/entry.server.tsx: failed to import "chalk" 2025-01-02 15:35:59 |- Error: Cannot find module 'chalk' imported from '/app/app/utils/logger.ts' 2025-01-02 15:35:59 at nodeImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:53047:19) 2025-01-02 15:35:59 at ssrImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52914:22) 2025-01-02 15:35:59 at eval (/app/app/utils/logger.ts:6:37) 2025-01-02 15:35:59 at instantiateModule (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5) 2025-01-02 15:35:59 2025-01-02 15:35:59 9:35:59 PM [vite] Error when evaluating SSR module virtual:remix/server-build: failed to import "chalk" 2025-01-02 15:35:59 |- Error: Cannot find module 'chalk' imported from '/app/app/utils/logger.ts' 2025-01-02 15:35:59 at nodeImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:53047:19) 2025-01-02 15:35:59 at ssrImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52914:22) 2025-01-02 15:35:59 at eval (/app/app/utils/logger.ts:6:37) 2025-01-02 15:35:59 at instantiateModule (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5) 2025-01-02 15:35:59 2025-01-02 15:35:59 9:35:59 PM [vite] Internal server error: Cannot find module 'chalk' imported from '/app/app/utils/logger.ts' 2025-01-02 15:35:59 at nodeImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:53047:19) 2025-01-02 15:35:59 at ssrImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52914:22) 2025-01-02 15:35:59 at eval (/app/app/utils/logger.ts:6:37) 2025-01-02 15:35:59 at instantiateModule (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5) 2025-01-02 16:17:07 10:17:07 PM [vite] Internal server error: Cannot find module 'chalk' imported from '/app/app/utils/logger.ts' 2025-01-02 16:17:07 at nodeImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:53047:19) 2025-01-02 16:17:07 at ssrImport (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52914:22) 2025-01-02 16:17:07 at eval (/app/app/utils/logger.ts:6:37) 2025-01-02 16:17:07 at instantiateModule (file:///app/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)

@rumbis
Copy link

rumbis commented Jan 3, 2025

i have the same issue with docker compose and pnpm run dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants