Skip to content

Commit e04a6d3

Browse files
committed
Error Fix-1
1 parent 225b4c9 commit e04a6d3

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@
6262
"helmet": "3.21.3",
6363
"hiddie": "^1.0.0",
6464
"history": "^5.3.0",
65+
"https-browserify": "^1.0.0",
6566
"husky": "^3.1.0",
6667
"identity-obj-proxy": "3.0.0",
6768
"intersection-observer": "0.7.0",
6869
"js-cookie": "^2.2.1",
70+
"lodash": "^4.17.21",
6971
"mini-css-extract-plugin": "2.5.2",
7072
"newrelic": "^6.13.0",
7173
"node-sass": "6.0.1",
@@ -88,6 +90,7 @@
8890
"sass-loader": "12.4.0",
8991
"serve-static": "1.14.1",
9092
"source-map-support": "0.5.21",
93+
"stream-http": "^3.2.0",
9194
"string-replace-loader": "3.1.0",
9295
"style-loader": "3.3.1",
9396
"styled-components": "5.1.0",
@@ -129,9 +132,5 @@
129132
"commitLimit": false,
130133
"template": "changelog-template.hbs",
131134
"package": true
132-
},
133-
"peerDependencies": {
134-
"react": ">=16.13.0",
135-
"react-dom": ">=16.13.0"
136135
}
137136
}

src/universal/core/route/routeConstants.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import { generateComponents } from '../../utils/helper';
2-
3-
const componentConfig = require('__V_COMPONENTS__');
4-
5-
const components = generateComponents(componentConfig.default);
1+
import components from './components';
62

73
const ROUTE_PATHS = {};
84
const ROUTE_CONFIGS = {};

webpack.common.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ const commonConfig = merge(voltranCommonConfig, {
101101
},
102102
fallback: {
103103
url: false,
104+
http: require.resolve('stream-http'),
105+
https: require.resolve('https-browserify'),
104106
},
105107
},
106108
});

0 commit comments

Comments
 (0)