Skip to content

Cannot resolve module 'fs' #37

@MartinTonne

Description

@MartinTonne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions