Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown from WebPack #29

Open
KenDRhyD opened this issue Feb 7, 2017 · 3 comments
Open

Exception thrown from WebPack #29

KenDRhyD opened this issue Feb 7, 2017 · 3 comments

Comments

@KenDRhyD
Copy link

KenDRhyD commented Feb 7, 2017

Environment: MacOS 10.11.6

Installed yo and generator-aspnetcore and then created a new project. Ran "npm install".

Opened the project in Visual Code and entered "npm run"in the terminal, and the following was displayed:

bash-3.2$ npm start

[email protected] start /Users/krallen/Projects/DotNetCore/d2llontario
node run

Starting 'start'...
Starting 'clean'...
Finished 'clean' after 36ms
Starting 'appsettings'...
Finished 'appsettings' after 4ms
Error
at webpack (/Users/krallen/Projects/DotNetCore/d2llontario/node_modules/webpack/lib/webpack.js:19:9)
at resolve (/Users/krallen/Projects/DotNetCore/d2llontario/run.js:159:24)
at Promise.resolve.then.then.then (/Users/krallen/Projects/DotNetCore/d2llontario/run.js:156:17)
bash-3.2$

Line 19 of the Webpack.js file contains the line:

throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);

This seems to come from the loading of a 'schema' file:

const webpackOptionsSchema = require("../schemas/webpackOptionsSchema.json");

I have not modified anything, so why should this be occurring?

@MaxSan
Copy link

MaxSan commented Feb 8, 2017

Exact same issue on 16.04 LTS Ubuntu.

@robertzas
Copy link

It looks like the yo package is out of date, I got it to work by upgrade all of the npm packages to their latest versions except webpack and history, but then noticed that the update to dotnet core 1.1.0 wasn't included with the yo package either.

Just clone the main branch. I'm working on adding authentication with JWT using identity server 4 on my fork, you can clone that too, just change the database string to your own(I use elephantsql, it's free and easy).

@KenDRhyD
Copy link
Author

Yes, cloning from the main branch does produce a running system, but not one that actually illustrates retrieving data from the .Net Core server aspect! Still, at least it builds and runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants