1

I am fairly new to using webpack in webapps. I am trying to build the vue js and asp.net core SPA using nodejs and webpack. I am facing this error in the screenshot. I have installed the all the dependencies using npm then I tried to run .net core vue app it opens the cshtml web page but dependencies part of the web page are not loaded. Refer another screenshot.

webpack command error

cshtml web page without any css and vue code loaded and is not compiled.

Devdependencies from Package.json

This Build command gives error in screenshot 1

Please let me know if more details are required. I will appreciate any help or suggestions. Thanks

  • Please, [do not upload images of code/errors](https://meta.stackoverflow.com/a/285557/4298200). Links to images can fail, and search engines cannot index that information. Make sure any textual information is in text form. Posting a [Minimal, Complete, Verifiable](https://stackoverflow.com/help/minimal-reproducible-example) example demonstrating your problem will help you get better answers. – Karl Hill Jul 05 '21 at 04:31

1 Answers1

0

'm posting this here, it might help, i searched my issue on google, and found this thread.

in my case, i have a custom " optin " arg, that i'm using to optin features that are not included in the base build by default. I'm doing that because i have multiple entries and multiple outputs in the same project, and some entries are not always necessary, so i let the user optin for it.

Everything worked fine, but one day i misspelled it and wrote : npm run build.prod -- -optin=myfeature and i got this error, because it was missing one " - " before the optin argument.

So it was the -o argument that was enabled instead, and it was messing up with webpack outputs

  • whenever I run webpack command I get this error.D:\workspace\raas>webpack [webpack-cli] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined – Rohit Narkhede Jun 25 '21 at 05:26