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

Can't resolve 'fs' #1

Open
seanoliver opened this issue Aug 31, 2023 · 2 comments
Open

Can't resolve 'fs' #1

seanoliver opened this issue Aug 31, 2023 · 2 comments

Comments

@seanoliver
Copy link

image

Tried adding smol logger to our other project and am seeing this error:

Import trace for requested module:
./lib/hooks/use-kv-data.tsx
./components/chat.tsx
- wait compiling /_error (client and server)...
- error ./node_modules/.pnpm/@[email protected]/node_modules/@smol-ai/logger/dist/smol-logger.es5.js:1:0
Module not found: Can't resolve 'fs'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./lib/hooks/use-kv-data.tsx
./components/chat.tsx

I ran pnpm i fs just to be sure but it's still failing. :(

@alecdewitz
Copy link

@seanoliver

https://nextjs.org/docs/pages/api-reference/edge#unsupported-apis

Looks like this is specific to nextjs

@Divin-18
Copy link

install new version of nodejs

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

3 participants