Closed Oli4242 closed 5 years ago
Currently this broccoli-plugin is not compatible with broccoli 1.x. (dowgrading to an ealier plugin may address) Or seeing of broccoli 1.x has a configurable tmpdir (may be just as simple as setting the posix tmp dir environment variable)
I believe it to be the following:
browserify
in the <project>/node_modules
because that is just how the node_resolution works.Potential steps on to address this:
I would love to address this, but this week is looking quite busy :(. If no-one gets to this, I will eventually get to it. Although it most likely wont be a prompt fix.
I'm not really used to nodejs so I can't help… I downgraded to broccoli 0.16.9 and it worked. Thanks :)
Just to say I also ran into this problem on updating to broccoli 1.1, and also downgraded to 0.16.9.
What worked for me was adding the absolute path to <project>/node_modules
into browserify paths right after setting basedir. Not sure if there are still scenarios where browserify will fail.
this.options.browserify.paths = [ path.join(__dirname, '..') ]
I am also encountering this problem at the moment.
Error: Cannot find module 'reactify' from '/var/folders/hq/11q9dqkn6hn2xf14sx38s1rc0000gn/T/broccoli-70379Pylq7HZ0yROy/cache-1-watchify'
at /Users/fiiv/dev/pinmark/frontend/node_modules/resolve/lib/async.js:48:31
at processDirs (/Users/fiiv/dev/pinmark/frontend/node_modules/resolve/lib/async.js:182:39)
at ondir (/Users/fiiv/dev/pinmark/frontend/node_modules/resolve/lib/async.js:197:13)
at load (/Users/fiiv/dev/pinmark/frontend/node_modules/resolve/lib/async.js:80:43)
at onex (/Users/fiiv/dev/pinmark/frontend/node_modules/resolve/lib/async.js:105:17)
at /Users/fiiv/dev/pinmark/frontend/node_module
Is there any way around this besides downgrading broccoli?
I'm not sure if it is a bug or if I'm missing something but this:
Causes the following error:
I need to manually require babelify and the presets but then it wont find any node module loaded by my source files.
I'm using node v6.9.1, npm 3.10.8 and Broccoli 1.1.0