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

[build] npm run setup didn't run on windows #5816

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

cyantree
Copy link
Contributor

When running npm run setup on windows (without WSL) it fails with the following message:

node:internal/validators:162
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
          ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at Object.basename (node:path:756:5)
    at transformFileName (scripts\build\generate-css.ts:13:15)
    at generateCoreCSS (\scripts\build\generate-css.ts:57:56) {
  code: 'ERR_INVALID_ARG_TYPE'
}

This is because of the glob path containing back slashes but fast-glob not supporting these:
https://www.npmjs.com/package/fast-glob#pattern-syntax

Always use forward-slashes in glob expressions (patterns and ignore option).

@rtivital rtivital merged commit a0e0683 into mantinedev:master Feb 26, 2024
1 check passed
@rtivital
Copy link
Member

Thanks!

@cyantree cyantree deleted the fix-windows-setup branch March 5, 2024 21:18
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

Successfully merging this pull request may close these issues.

2 participants