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

Cannot resolve module 'fs' #37

Open
MartinTonne opened this issue Feb 26, 2019 · 0 comments
Open

Cannot resolve module 'fs' #37

MartinTonne opened this issue Feb 26, 2019 · 0 comments

Comments

@MartinTonne
Copy link

I've met this problem a "few" times now.
I know it's not an issue with roc itself, but it's roc-config related I think.

According to the solutions I've found online it can be fixed by adding
module.exports = { node: { fs: "empty" } }

But I can't seem to find the right place for it.
My thought is that it should be in the roc.config file, but it doesn't work.

And, where should I put things like:
module: { loaders: [ { test: /\.ts(x?)$/, exclude: /node_modules/, loader: "ts-loader" },

Anyhow, it would be nice to have some information about this stuff somewhere in this repo. :)

Kind regards
Martin

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

1 participant