Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Error: path must be a string" (v5.10.0)

I have this file (a large bundle of a couple of JS files) that used to work with browserify (5.10.0 ) till a couple of days ago, and now it does not.

This is what I am running:

$ browserify index.js -o dist/out.bundle.js

And the output is:

Error: path must be a string
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:15:16
at process._tickCallback (node.js:419:13)

Anyone knows what might cause this? Is there a way I can debug this to try and figure out what bothers browserify?

Cheers

like image 487
orcaman Avatar asked Sep 01 '14 13:09

orcaman


1 Answers

maybe there is something wrong in your package.json config, especially take care for the line transform!~

"browserify": {
    "transform": [
        [
            "reactify", {
                "harmony": "true"
            }
        ]
    ]
  }
like image 158
zuoyan.wu Avatar answered Oct 05 '22 07:10

zuoyan.wu