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

USWDS-Compile - Bug: Error: spawn EINVAL #98

Closed
2 tasks done
oliverharan opened this issue Apr 23, 2024 · 4 comments
Closed
2 tasks done

USWDS-Compile - Bug: Error: spawn EINVAL #98

oliverharan opened this issue Apr 23, 2024 · 4 comments
Labels
Needs: Author Response 🔴 We're waiting for more information from a participant Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code

Comments

@oliverharan
Copy link

oliverharan commented Apr 23, 2024

Describe the bug

After running USWDS for over yr with good success, Im getting errors all of a sudden. This happens when I either run npx gulp watch or npx gulp compile. Im wondering if anyone encountered these messages and have any suggestions on what I can do to resolve it?

Command prompt is as follows:

C:\inetpub\wwwroot\c360\web\themes\custom\ed_cop>npx gulp compile
[14:38:57] Using gulpfile C:\inetpub\wwwroot\c360\web\themes\custom\ed_cop\gulpfile.js
[14:38:57] Starting 'compile'...
uswds.version: 3
Compiling with USWDS 3.7.0
components\style.scss
Error: spawn EINVAL
[14:38:57] Finished 'compile' after 38 ms

C:\inetpub\wwwroot\c360\web\themes\custom\ed_cop>npx gulp watch
[14:45:00] Using gulpfile C:\inetpub\wwwroot\c360\web\themes\custom\ed_cop\gulpfile.js
[14:45:00] Starting 'watch'...
uswds.version: 3
Compiling with USWDS 3.7.0
components\style.scss
Error: spawn EINVAL

image

/* style.scss */

@use "uswds-core" with (
$theme-image-path: "../assets/img",
$theme-font-path: "../assets/fonts",
$theme-respect-user-font-size: true,
$theme-font-type-sans: "public-sans",
$theme-banner-max-width: "widescreen",
$theme-grid-container-max-width: "widescreen",
$theme-site-margins-breakpoint: "widescreen",
$theme-input-max-width: "desktop",
$theme-font-role-ui: "sans",
$theme-font-role-heading: "sans",
$theme-font-role-body: "sans",
$theme-font-role-code: "mono",
$theme-font-role-alt: "serif",
$theme-type-scale-sm: 5,
$theme-body-font-size: "sm",
$theme-body-line-height: 4,
$theme-color-accent-cool-lighter: #e2f1f3,
$theme-color-accent-cool-light: #b0d9de,
$theme-color-accent-cool: #2b6168,
$theme-color-accent-cool-dark: #0a2231,
$theme-color-accent-cool-darker: #0a2231,
$theme-input-background-color: "white",
$theme-body-background-color: "base-lighter",
$theme-input-tile-border-radius: "lg",
$theme-button-border-radius: "lg"
);
@forward "uswds";

@use "site-wide";
@use "./announcement/announcement";
@use "./sitewide_alert/sitewide_alert";
@use "./resources/resources";
@use "./stepper/stepper";
@use "./quicklinks/quicklinks";
@use "./announcement_deadline/announcement_deadline";

Steps to reproduce the bug

  1. From command prompt 2. From the theme directory where the gulpfile is located 3> Run the command npx gulp watch or npx gulp compile

Expected Behavior

npx gulp compile and watch process without any errors or warnings

Related code

No response

Screenshots

image

System setup

No response

Additional context

No response

Code of Conduct

@oliverharan oliverharan added Needs: Confirmation We need to confirm that this is an issue Type: Bug A problem in the code labels Apr 23, 2024
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Apr 23, 2024
@mejiaj
Copy link
Contributor

mejiaj commented Apr 25, 2024

Hey @oliverharan, would you mind sharing the version of Node/NPM are you using?

@mejiaj mejiaj added the Needs: Author Response 🔴 We're waiting for more information from a participant label Apr 25, 2024
@oliverharan
Copy link
Author

oliverharan commented Apr 29, 2024

@mejiaj Im using NPM 10.5.2

@oliverharan
Copy link
Author

Hey @oliverharan, would you mind sharing the version of Node/NPM are you using?

@mejiaj Im using NPM 10.5.2

@oliverharan
Copy link
Author

well, after running an npm update.... the issue has been resolved... so hopefully this can help the next person... thank you team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Response 🔴 We're waiting for more information from a participant Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code
Projects
None yet
Development

No branches or pull requests

2 participants