Skip to content

Commit 0bea97c

Browse files
wilbowniurimatias
authored andcommitted
Fix for error running anything on Windows
I had to eject the webpack config and add this to get any project at all to run on Windows/Git Bash without this error: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. ││ - configuration.context: The provided value "C:/Users/xxx/GitHub/xxxxxx" is not an absolute path! ││ -> The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory. Not sure if this is the best place, but should work on any platform. Context (Environment) OS: Windows 10, Git Bash v2.20.0 64bit Embark Version: 3.2.7 Node Version: 10.14.2 NPM Version: 6.4.1
1 parent d5f6da3 commit 0bea97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/modules/pipeline/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const path = require('path');
44

5-
const dappPath = process.env.DAPP_PATH;
5+
const dappPath = path.normalize(process.env.DAPP_PATH);
66
const embarkPath = process.env.EMBARK_PATH;
77

88
const dappNodeModules = path.join(dappPath, 'node_modules');

0 commit comments

Comments
 (0)