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

How does this even work? #5

Open
jbass86 opened this issue May 28, 2020 · 1 comment
Open

How does this even work? #5

jbass86 opened this issue May 28, 2020 · 1 comment

Comments

@jbass86
Copy link

jbass86 commented May 28, 2020

Hi, sorry I know this isn't exactly an issue but I was hoping you could clear this up for me.

I tried running your example in my project but when I try to webpack winston it is going to attempt to require fs in several places and obviously that is not going to work for the browser. How do you deal with this. I dont see anything special in any of your configs but I must be missing something...

I get a ton of output like this:

Module not found: Error: Can't resolve 'fs' in 'C:\Users\Bass\dev\LetterCounter\node_modules\winston\dist\winston\transports'
resolve 'fs' in 'C:\Users\Bass\dev\LetterCounter\node_modules\winston\dist\winston\transports'
Parsed request is a module
using description file: C:\Users\Bass\dev\LetterCounter\node_modules\winston\package.json (relative path: ./dist/winston/transports)
Field 'browser' doesn't contain a valid alias configuration

@iliyaZelenko
Copy link

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

2 participants