Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #24

Description

@bondarenkorom

Hello! I have an error when running yarn build command after enabling this plugin v0.2.0 for Strapi v4.7.1

% yarn build
yarn run v1.22.10
$ strapi build
Starting the compilation for TypeScript files in /strapi
Building your admin UI with development configuration...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Object.resolve (path.js:1074:7)
    at /Users/strapi/node_modules/@strapi/admin/utils/create-cache-dir.js:82:33
    at Array.filter (<anonymous>)
    at createCacheDir (/Users/strapi/node_modules/@strapi/admin/utils/create-cache-dir.js:80:6)
    at async Object.build (/Users/strapi/node_modules/@strapi/admin/index.js:27:3)
    at async module.exports (/Users/strapi/node_modules/@strapi/strapi/lib/commands/build.js:12:3) {
  code: 'ERR_INVALID_ARG_TYPE'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Screenshot 2023-03-30 at 14 40 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions