Usage with webpack? (users see "Error: Cannot find the module") #187
Unanswered
amaranadh-wal
asked this question in
Q&A
Replies: 1 comment
-
Because webpack. const umzug = new Umzug({
......
migrations: {
......
customResolver: function (filePath) {
return __non_webpack_require__(filePath);
},
......
},
......
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I have following issue when I am using umzug with Electronjs with sqlite database.
Error: Cannot find module 'C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\migrations\20181119091008-create-language.js'
But the file is available in the location. I do not understand why it is happening.
The complete stack trace is below.
**Cannot find module 'C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\migrations\20181119091008-create-language.js'
at r (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib sync:6:40)
at e.exports.migration (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\migration.js:99:1)
at C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\migration.js:128:1
at Generator.next ()
at value (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:27:1)
at exports (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\babel-runtime\helpers\extends.js:3:1)
at new undefined (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\core-js\library\modules\es6.promise.js:185:1)
at C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:21:1
at e.exports.defineProperty [as _exec] (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\storages\JSONStorage.js:3:1)
at e.exports.downName [as up] (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\migration.js:99:1)
at e.exports.unlogMigration (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\index.js:158:1)
From previous event:
at resolve (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\index.js:135:1)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at i.default.map.then.then.e (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\index.js:133:1)
From previous event:
at e.exports.migration [as execute] (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\node_modules\umzug\lib\index.js:131:1)
at e.exports. (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\app\main.dev.js:117:16)
From previous event:
at App.migrations (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\app\main.dev.js:116:55)
at Generator.next ()
at n (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\app\main.dev.js:16:1)
at sequelize (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\app\main.dev.js:18:37)
at new Promise ()
at App. (C:\Users\WAL\AppData\Local\Programs\electron-react-boilerplate\resources\app.asar\webpack:\app\main.dev.js:16:1)
at App.emit (events.js:187:15)
[2019-01-08 16:16:54.020] [info] {"code":"MODULE_NOT_FOUND"}
**
Beta Was this translation helpful? Give feedback.
All reactions