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: Cannot find module 'ajv/dist/compile/codegen' #350

Closed
jaywcjlove opened this issue Feb 24, 2022 · 1 comment
Closed

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

jaywcjlove opened this issue Feb 24, 2022 · 1 comment

Comments

@jaywcjlove
Copy link
Member

jaywcjlove commented Feb 24, 2022

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

@jaywcjlove
Copy link
Member Author

"ajv": "^8.8.0",

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

1 participant