NPM run start, webpack server issue - 'TypeError: Cannot read property 'properties' of undefined'











up vote
0
down vote

favorite












I am trying to run npm with the command npm run start but I'm getting an error which seems to be happening when the webpack dev server tries to open:



> election@1.0.0 start C:UsersAristophaneselection_reactelection_react-0.0.1
> webpack-dev-server --open

C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^

TypeError: Cannot read property 'properties' of undefined
at module.exports (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89:48)
at Object.<anonymous> (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-dev-serverbinwebpack-dev-server.js:84:40)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! election@1.0.0 start: `webpack-dev-server --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the election@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


I have run npm install -g webpack-dev-server as this has been the solution for similar errors, but the issue persists. Can anyone help? Thanks.










share|improve this question






















  • try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
    – PlayMa256
    Nov 7 at 12:35










  • Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
    – Aristophanes
    Nov 7 at 13:26















up vote
0
down vote

favorite












I am trying to run npm with the command npm run start but I'm getting an error which seems to be happening when the webpack dev server tries to open:



> election@1.0.0 start C:UsersAristophaneselection_reactelection_react-0.0.1
> webpack-dev-server --open

C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^

TypeError: Cannot read property 'properties' of undefined
at module.exports (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89:48)
at Object.<anonymous> (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-dev-serverbinwebpack-dev-server.js:84:40)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! election@1.0.0 start: `webpack-dev-server --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the election@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


I have run npm install -g webpack-dev-server as this has been the solution for similar errors, but the issue persists. Can anyone help? Thanks.










share|improve this question






















  • try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
    – PlayMa256
    Nov 7 at 12:35










  • Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
    – Aristophanes
    Nov 7 at 13:26













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to run npm with the command npm run start but I'm getting an error which seems to be happening when the webpack dev server tries to open:



> election@1.0.0 start C:UsersAristophaneselection_reactelection_react-0.0.1
> webpack-dev-server --open

C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^

TypeError: Cannot read property 'properties' of undefined
at module.exports (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89:48)
at Object.<anonymous> (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-dev-serverbinwebpack-dev-server.js:84:40)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! election@1.0.0 start: `webpack-dev-server --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the election@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


I have run npm install -g webpack-dev-server as this has been the solution for similar errors, but the issue persists. Can anyone help? Thanks.










share|improve this question













I am trying to run npm with the command npm run start but I'm getting an error which seems to be happening when the webpack dev server tries to open:



> election@1.0.0 start C:UsersAristophaneselection_reactelection_react-0.0.1
> webpack-dev-server --open

C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^

TypeError: Cannot read property 'properties' of undefined
at module.exports (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-clibinconfig-yargs.js:89:48)
at Object.<anonymous> (C:UsersAristophaneselection_reactelection_react-0.0.1node_moduleswebpack-dev-serverbinwebpack-dev-server.js:84:40)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! election@1.0.0 start: `webpack-dev-server --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the election@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


I have run npm install -g webpack-dev-server as this has been the solution for similar errors, but the issue persists. Can anyone help? Thanks.







node.js reactjs npm webpack webpack-dev-server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 12:18









Aristophanes

237




237












  • try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
    – PlayMa256
    Nov 7 at 12:35










  • Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
    – Aristophanes
    Nov 7 at 13:26


















  • try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
    – PlayMa256
    Nov 7 at 12:35










  • Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
    – Aristophanes
    Nov 7 at 13:26
















try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
– PlayMa256
Nov 7 at 12:35




try running a local version of webpack-dev-server, it uses: "Note: While you can install and run webpack-dev-server globally, we recommend installing it locally. webpack-dev-server will always use a local installation over a global one."
– PlayMa256
Nov 7 at 12:35












Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
– Aristophanes
Nov 7 at 13:26




Hi, I followed the instructions on the webpack-dev-server github regarding installing locally, but I still get the same error when i try 'npm run start'
– Aristophanes
Nov 7 at 13:26

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53189328%2fnpm-run-start-webpack-server-issue-typeerror-cannot-read-property-properti%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53189328%2fnpm-run-start-webpack-server-issue-typeerror-cannot-read-property-properti%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Hercules Kyvelos

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud