Skip to content

Commit 7a3091e

Browse files
Added reflect-metadata to webpack externals as an attempt to prevent error (Cannot find module 'reflect-metadata')
1 parent 92547b1 commit 7a3091e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "electron-typescript-react-admin-typeorm-sqlite",
33
"author": "Bernardo Duarte <bernardoeiraduarte@gmail.com>",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"description": "An Electron boilerplate including TypeScript, React, Jest and ESLint.",
66
"main": "./.webpack/main/index.js",
77
"scripts": {

webpack/main.webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ module.exports = {
88
module: {
99
rules: require('./rules.webpack'),
1010
},
11-
externals: [nodeExternals()],
11+
externals: [nodeExternals(), 'reflect-metadata'],
1212
}

0 commit comments

Comments
 (0)