Skip to content

Error: Cannot find module 'ajv/dist/core' #10

Open
@ianzone

Description

@ianzone

Not sure why I got this. Does ajv have valid exports?

@storybook/core v8.5.8

info => Starting manager..
info => Starting preview..
failed to load config from /home/ian/templates/react-storybook/vite.config.ts
=> Failed to build the preview
Error: Cannot find module 'ajv/dist/core'
Require stack:
- ./node_modules/ajv-draft-04/dist/index.js
- ./node_modules/@rushstack/node-core-library/lib/JsonSchema.js
- ./node_modules/@rushstack/node-core-library/lib/index.js
- ./node_modules/@microsoft/api-extractor/lib/api/CompilerState.js
- ./node_modules/@microsoft/api-extractor/lib/index.js
    at Function.<anonymous> (node:internal/modules/cjs/loader:1225:15)
    at Module._resolveFilename (./node_modules/esbuild-register/dist/node.js:4794:36)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Module.require (node:internal/modules/cjs/loader:1311:12)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (./node_modules/ajv-draft-04/src/index.ts:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at node:internal/modules/cjs/loader:1706:10

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

error: "storybook" exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions