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

[bug] Error when trying to build the project ! #2288

Closed
3 tasks done
MustafaFahmy-FE opened this issue May 24, 2023 · 1 comment
Closed
3 tasks done

[bug] Error when trying to build the project ! #2288

MustafaFahmy-FE opened this issue May 24, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@MustafaFahmy-FE
Copy link

MustafaFahmy-FE commented May 24, 2023

Agreement

Describe the issue

I have a wordpress project that built using Docker, Sage theme and Bud

When trying to build the project using
npm run build or npx run build

I got this error
`

build
bud build

node:internal/errors:477
ErrorCaptureStackTrace(err);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at readFile (node:fs:402:10)
at go$readFile (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:28440:14)
at readFile (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:28437:12)
at H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:131529:12
at new Promise ()
at readFile (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:131528:14)
at Object._readFile (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:84367:58)
at Object._readFile (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud-support\lib\cjs\index.js:131542:45)
at Manifest.read (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud\lib\cjs\context\manifest.js:10:39)
at makeContext (H:\GitHub\Alf-healthcare\wp-content\themes\sage\node_modules@roots\bud\lib\cjs\context\index.js:31:58) {
code: 'ERR_INVALID_ARG_TYPE'
}`

I tried several solutions but with no result still the same error every time I build the project

Node v 16
Windows 10

version

5.8.7

@MustafaFahmy-FE MustafaFahmy-FE added the bug Something isn't working label May 24, 2023
@retlehs
Copy link
Member

retlehs commented May 24, 2023

WSL is a requirement to use bud.js on Windows. Please use Roots Discourse for support requests.

@retlehs retlehs closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
@retlehs retlehs added invalid This doesn't seem right and removed bug Something isn't working labels May 24, 2023
@roots roots locked and limited conversation to collaborators May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants