Skip to content

Error: Cannot find module 'ajv/dist/compile/codegen'  #350

@jaywcjlove

Description

@jaywcjlove

Github Actions Error: https://github.com/kktjs/kkt/runs/5314654199?check_suite_focus=true

> @template/bundle@7.1.1 bundle /git-project/kkt/kkt/example/bundle
> ncc build src/components/button/index.jsx --target web --library Button

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'ajv/dist/compile/codegen'
Require stack:
- /git-project/kkt/kkt/node_modules/ajv-keywords/dist/definitions/typeof.js
- /git-project/kkt/kkt/node_modules/ajv-keywords/dist/keywords/typeof.js
- /git-project/kkt/kkt/node_modules/ajv-keywords/dist/keywords/index.js
- /git-project/kkt/kkt/node_modules/ajv-keywords/dist/index.js
- /git-project/kkt/kkt/node_modules/schema-utils/dist/validate.js
- /git-project/kkt/kkt/node_modules/schema-utils/dist/index.js
- /git-project/kkt/kkt/node_modules/mini-css-extract-plugin/dist/index.js
- /git-project/kkt/kkt/core/lib/plugins/miniCssExtractPlugin.js
- /git-project/kkt/kkt/core/lib/index.js
- /git-project/kkt/kkt/packages/ncc/lib/overrides.js
- /git-project/kkt/kkt/packages/ncc/lib/index.js

"@types/mini-css-extract-plugin": "2.5.0",

kkt@ /git-project/kkt/kkt
└─┬ lerna@4.0.0
  └─┬ @lerna/add@4.0.0
    └─┬ pacote@11.3.5
      └─┬ @npmcli/run-script@1.8.6
        └─┬ node-gyp@7.1.2
          └─┬ request@2.88.2
            └─┬ har-validator@5.1.5
              └── ajv@6.12.6

Upgrade ajv@^8.8.0

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