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

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

Open
bondarenkorom opened this issue Mar 30, 2023 · 2 comments

Comments

@bondarenkorom
Copy link

bondarenkorom commented Mar 30, 2023

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

@Sletheren
Copy link

have the same, did you manage to solve it? @bondarenkorom

@peckpeck20
Copy link

I get the same error

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

3 participants