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

Error when running 'gridsome develop' on newly created project #187

Closed
jscheffner opened this issue Feb 9, 2019 · 4 comments
Closed

Error when running 'gridsome develop' on newly created project #187

jscheffner opened this issue Feb 9, 2019 · 4 comments

Comments

@jscheffner
Copy link

When running gridsome develop in the directory I created using gridsome create hello-gridsome, the following error occurs:

C:\Users\Me\Workspace\hello-gridsome\node_modules\ajv\lib\keyword.js:65
      throw new Error('custom keyword definition is invalid: '  + this.errorsText(validateDefinition.errors));
      ^

Error: custom keyword definition is invalid: data/errors should be boolean
    at Ajv.addKeyword (C:\Users\Me\Workspace\hello-gridsome\node_modules\ajv\lib\keyword.js:65:13)
    at module.exports (C:\Users\Me\Workspace\hello-gridsome\node_modules\ajv-errors\index.js:10:7)
    at Object.<anonymous> (C:\Users\Me\Workspace\hello-gridsome\node_modules\webpack\node_modules\schema-utils\src\validateOptions.js:22:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\Me\Workspace\hello-gridsome\node_modules\webpack\node_modules\schema-utils\src\index.js:7:25)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

Steps to reproduce

> gridsome create hello-gridsome
> cd hello-gridsome
> gridsome develop

Environment:

  • Windows
  • Node v10.15.1
  • gridsome cli v0.0.7
@fahmiirsyadk
Copy link

fahmiirsyadk commented Feb 10, 2019

its same , the problem is from ajv dependency.

issue: webpack/webpack#8768

@fahmiirsyadk
Copy link

Quick fix its just add this code in the package.json

  "resolutions": {
    "ajv": "6.8.1"
  }

@jscheffner
Copy link
Author

@blubMe: Thanks, that did the trick.

@jscheffner
Copy link
Author

Got fixed with ajv v6.9.1.

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