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

Missing schemas folder and containing WebpackOptions.json file #64

Open
kexic opened this issue Nov 7, 2019 · 2 comments
Open

Missing schemas folder and containing WebpackOptions.json file #64

kexic opened this issue Nov 7, 2019 · 2 comments

Comments

@kexic
Copy link

kexic commented Nov 7, 2019

Receiving an error on initial script run: yarn start

yarn run v1.9.4
$ node tools/server.js
C:\GitHub\react-horizontal-timeline\node_modules\webpack\lib\webpack.js:31
throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);
^

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

Symptom:
File: webpack.js
Line: 14
Code:
const webpackOptionsSchema = require("../schemas/WebpackOptions.json");

No directory exists at ../schemas/ in the current repository (sibling to src). Please add this missing json file.

@kexic
Copy link
Author

kexic commented Nov 7, 2019

Steps taken:

  1. git clone project
  2. yarn install
  3. yarn start

I'm not sure why there are missing artifacts, but I'm running in a fresh VM so perhaps there's something global that's missing from the package.json. Not having any issues with 6 other projects I've evaluated today or the roughly 20 this week.

@MUMUKSHMEGHWAL
Copy link

Follow below steps:

Running the development version

  • Just clone the repo and do an npm install (or yarn install)
  • Note: You will need to do npm install react react-dom to install peerDependencies as both yarn and npm don't do this.
  • Run npm run start/npm start/yarn start.
  • Then go to localhost:5001/demos/<demo_name>/index.html to see the fruits of your labor.

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

2 participants