flummox icon indicating copy to clipboard operation
flummox copied to clipboard

Warnings from webpack

Open kjs3 opened this issue 10 years ago • 3 comments

I only see /lib/Flux.js so I'm not actually sure why this warning is happening? This is from a webpack build btw.

Update: I'm getting these warnings from a require in /lib/Flux.js. The intent is to require the Facebook flux module but it looks like it's requiring lib/Flux.js again due to OS X being case-insensitive by default. This is from a webpack build btw.

WARNING in ./~/flummox/lib/Flux.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

WARNING in ./~/flummox/lib/flux.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

kjs3 avatar May 20 '15 02:05 kjs3

It looks like this is causing a problem with my frontend build.

lib/Flux.js requires the flux dispatcher (var _Dispatcher = require('flux');) but my webpack build looks like it's requiring lib/Flux.js again.

Reinstalling OS X with a case-sensitive filesystem would be a bit drastic and last time I tried that Adobe CS got all pissy. Are other people hitting this issue? Any way around it without forking/renaming files?

kjs3 avatar May 20 '15 16:05 kjs3

I'm currently getting past this by explicitly telling webpack how to require flux but this seems pretty hacky.

resolve: {
    alias: {
      'flux': path.join(__dirname, '../node_modules/flummox/node_modules/flux')
    }
},

kjs3 avatar May 20 '15 19:05 kjs3

We are hitting the same issue here. The workaround works, but would be nice to have it working out of the box.

danez avatar Jun 08 '15 12:06 danez