Skip to content

jQuery LESS theme build fails when copying theme images directory #1718

@georgianastasov

Description

@georgianastasov

Ignite UI CLI Version

15.2.2

Framework

jQuery

CLI Command

new

Node.js Version

20.11.0

Operating System

Windows

Package Manager

npm

Description

When creating a jQuery project using the infragistics.less theme, the build fails while copying theme assets.

The CLI tries to copy the images directory using fs.copyFileSync, which only works for files, not directories.

Steps to Reproduce

  1. Run ig new.
  2. Choose jQuery.
  3. Choose the infragistics.less theme.
  4. Select Complete & Run, or run ig start after project creation.

Actual Result

The build fails because the CLI attempts to copy a directory as a file.

Expected Result

The project should build successfully and copy all theme assets, including nested directories such as images.

Error Output / Logs

The new command threw error - Error
Message: EPERM: operation not permitted, copyfile 'C:\Work\1cli-tests\jquer\node_modules\ignite-ui\css\themes\infragistics\images' -> 'C:\Work\1cli-tests\jquer\themes\images'
Stack: Error: EPERM: operation not permitted, copyfile 'C:\Work\1cli-tests\jquer\node_modules\ignite-ui\css\themes\infragistics\images' -> 'C:\Work\1cli-tests\jquer\themes\images'
    at Object.copyFileSync (node:fs:3086:11)
    at C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:83:24
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:80:25)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\ganastasov\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\build.js:28:58)

Additional Context

Image

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions