Skip to content

Getting Uncaught Type Error #3

@siddharthnaik7

Description

@siddharthnaik7

Hello,

I have used file-system npm package to write content to a file.
While I run the code, I get -

"ncaught TypeError: fs.existsSync is not a function
at getExists (bundle.js:115)
at Object.exports.mkdir (bundle.js:145)
at Object.exports.writeFile (bundle.js:216)
at run (bundle.js:639)
at FileReader.reader.onload (bundle.js:648)"

error in the generated bundle.js

I am using following command to generate bundle.js -
$ browserify www/js/app.js -o www/js/bundle.js

Also, I have installed required npm packages.

Kindly, let me know how can I solve this error.

Thanks - Siddharth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions