Error: Module not found: Error: Can't resolve 'json-schema-spec-types/lib/json-schema-draft-07-schema'

Issue #30 new
Carlos Sanchez created an issue

I’ve installe the npm package in a proyect and I’m getting the following error:

./node_modules/json-schema-diff/dist/json-schema-diff/diff-schemas/validate-schemas.js:6:31-96 - Error: Module not found: Error: Can't resolve 'json-schema-spec-types/lib/json-schema-draft-07-schema' in '/my-project/node_modules/json-schema-diff/dist/json-schema-diff/diff-schemas'

I’ve checked that node_modules folder has all the dependencies installed and the json-schema-spec-types/lib/json-schema-draft-07-schema is reachable (the real file that is required is json-schema-spec-types/lib/json-schema-draft-07-schema.json and is required by validate-schemas.js. Anyway, not working for me.

Project cannot pass build.

Comments (1)

  1. Sebastian Tello Account Deactivated

    Hi Carlos, I can’t reproduce the problem. Can you provide more details of:

    1. How did you install the package
    2. NPM and Node versions: npm --version , node --version
    3. What command are you running, and the whole output.

    Thanks

  2. Log in to comment