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

Carbon build is not working #16963

Closed
sreelekhaa opened this issue Jul 15, 2024 Discussed in #15418 · 2 comments
Closed

Carbon build is not working #16963

sreelekhaa opened this issue Jul 15, 2024 Discussed in #15418 · 2 comments

Comments

@sreelekhaa
Copy link

Hi!

I'm trying to install the carbon-design-system/carbon package and I'm facing this issue. Has anyone seen this before? Thank you

Discussed in #15418

Originally posted by raphyluke December 18, 2023
Hello everyone !
I actually don't know if it's normal or not so I prefer to create discussion instead of issue at first.

I followed fully the contribution guide to build carbon. The problem is that when I try to build it I have an error at a moment :

> @carbon/grid:build

@carbon/colors: check ▐ ┏ check
@carbon/colors: check ▐ ┣ Running in: D:\open source\carbon\packages\colors
@carbon/colors: check ▐ ┣ Checking pattern: 'scss/*.scss', ignoring: ''       
@carbon/colors: check ▐ ┣ Compiling 0 files...
@carbon/colors: check ▐ ┣ Successfully compiled 0 files! 🎉
@carbon/colors: check ▐ ┗ Done in 0.01s
@carbon/grid: inline ▐ ┏ inline
@carbon/grid: inline ▐ ┣ Inlining sass dependencies
@carbon/grid: Error: No files match the pattern: D:\open source\carbon\packages\grid\scss\_inlined\_breakpoint.scss
@carbon/grid:     at D:\open source\carbon\node_modules\replace-in-file\lib\helpers\glob-async.js:27:23
@carbon/grid:     at f (D:\open source\carbon\node_modules\once\once.js:25:25)@carbon/grid:     at Glob.<anonymous> (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:148:7)
@carbon/grid:     at Glob.emit (node:events:514:28)
@carbon/grid:     at Glob._finish (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:194:8)
@carbon/grid:     at done (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:179:14)
@carbon/grid:     at Glob._processSimple2 (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:688:12)
@carbon/grid:     at D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:676:10
@carbon/grid:     at Glob._stat2 (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:772:12)
@carbon/grid:     at lstatcb_ (D:\open source\carbon\node_modules\replace-in-file\node_modules\glob\glob.js:764:12)
@carbon/icon-helpers: bundle ▐ ┗ Done in 6.50s

 ————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Running target build for 28 projects failed       

   Tasks not run because their dependencies failed or --nx-bail=true:

   - class-prefix:build
   - custom-theme:build
   - id-prefix:build
   - incremental-migration-vite:build
   - examples-light-dark:build
   - examples-nextjs:build
   - v10-token-compat-in-v11:build
   - vite:build
   - carbon-components:build
   - carbon-components-react:build
   - @carbon/elements:build
   - @carbon/icons:build
   - @carbon/icons-react:build
   - @carbon/icons-vue:build
   - @carbon/pictograms:build
   - @carbon/pictograms-react:build
   - @carbon/themes:build
   - @carbon/type:build

   Failed tasks:

   - @carbon/grid:build

I didn't touch anything in the code, I just forked, installed and tried to build
Is it normal ? Is it a mistake from me ?

If someone can explain and say to me the solution, it will be appreciable, thank you :)

@sreelekhaa
Copy link
Author

sreelekhaa commented Jul 24, 2024

I fixed this issue by replacing @forward '${file.importPath}' with @forward '${file.importPath.replace(/\\/g, '/')}' in the build-styles.js files. The build process fails at carbon-cli inline in the build command specified in packages/grid/package.json. However, it works fine when carbon-cli inline is removed.

@tay1orjones
Copy link
Member

tay1orjones commented Aug 16, 2024

@sreelekhaa could you share more about your environment? Platform, node version, shell, etc.? Our team can't repro this

@tay1orjones tay1orjones closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants