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

Switchiing to ESBUILD for angular project showing error #1587

Open
Saqib92 opened this issue Jan 30, 2024 · 5 comments
Open

Switchiing to ESBUILD for angular project showing error #1587

Saqib92 opened this issue Jan 30, 2024 · 5 comments

Comments

@Saqib92
Copy link

Saqib92 commented Jan 30, 2024

Description

I am switching my Angualr project from weback to ESBuild. and it is throwing error.

Steps to reproduce

@import 'lightgallery/scss/lightgallery';

src/global.scss:482:18:
[ng]       482 │   background: url("../images/loading.gif") no-repeat scroll cente...
[ng]           ╵                   ~~~~~~~~~~~~~~~~~~~~~~~
[ng] 
[ng]   Preprocessor stylesheets may not show the exact file location of the error.

Additional context

Issue in scss font and images variables.
After editing manually inside node_modules scss in fotn.scss removed variables and added ../fonts/fontname.ttf it is working.

Copy link

stale bot commented Apr 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the v1 label Apr 1, 2024
@Saqib92
Copy link
Author

Saqib92 commented Apr 1, 2024

any updates?

@stale stale bot removed the v1 label Apr 1, 2024
@gzeeel
Copy link

gzeeel commented Apr 29, 2024

Hi, I'm having the same issue, using Angular v17 and and switching to @angular-devkit/build-angular:browser-esbuild generates this error

image

@m-marxxs
Copy link

+1

@m-marxxs
Copy link

m-marxxs commented Apr 30, 2024

Saqib92, gzeeel

Quick workaround here:

styles.css
image

And copy from /node_modules/lightgallery/ the folders fonts and images into your angular project assets folder:
image

Hope it helps whoever reach this issue.

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

No branches or pull requests

3 participants