Skip to content

Commit

Permalink
Error Fix-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetkuslular committed Aug 8, 2022
1 parent 225b4c9 commit e04a6d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
"helmet": "3.21.3",
"hiddie": "^1.0.0",
"history": "^5.3.0",
"https-browserify": "^1.0.0",
"husky": "^3.1.0",
"identity-obj-proxy": "3.0.0",
"intersection-observer": "0.7.0",
"js-cookie": "^2.2.1",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "2.5.2",
"newrelic": "^6.13.0",
"node-sass": "6.0.1",
Expand All @@ -88,6 +90,7 @@
"sass-loader": "12.4.0",
"serve-static": "1.14.1",
"source-map-support": "0.5.21",
"stream-http": "^3.2.0",
"string-replace-loader": "3.1.0",
"style-loader": "3.3.1",
"styled-components": "5.1.0",
Expand Down Expand Up @@ -129,9 +132,5 @@
"commitLimit": false,
"template": "changelog-template.hbs",
"package": true
},
"peerDependencies": {
"react": ">=16.13.0",
"react-dom": ">=16.13.0"
}
}
6 changes: 1 addition & 5 deletions src/universal/core/route/routeConstants.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { generateComponents } from '../../utils/helper';

const componentConfig = require('__V_COMPONENTS__');

const components = generateComponents(componentConfig.default);
import components from './components';

const ROUTE_PATHS = {};
const ROUTE_CONFIGS = {};
Expand Down
2 changes: 2 additions & 0 deletions webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const commonConfig = merge(voltranCommonConfig, {
},
fallback: {
url: false,
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
},
},
});
Expand Down

0 comments on commit e04a6d3

Please sign in to comment.