Closed SimonDegraeve closed 9 years ago
I am using model in an isomorphic app, and this path.join(__dirname, info.path) fails because webpack transform __dirname into /. So the failing result is ctor = require('/memory/index').Adapter; (notice the absolute path).
model
path.join(__dirname, info.path)
__dirname
/
ctor = require('/memory/index').Adapter;
Thank you very much!
I am using
model
in an isomorphic app, and thispath.join(__dirname, info.path)
fails because webpack transform__dirname
into/
. So the failing result isctor = require('/memory/index').Adapter;
(notice the absolute path).