sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.55k stars 1.29k forks source link

Switchiing to ESBUILD for angular project showing error #1587

Closed Saqib92 closed 4 months ago

Saqib92 commented 9 months ago

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.

stale[bot] commented 7 months ago

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.

Saqib92 commented 7 months ago

any updates?

gzeeel commented 6 months ago

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

image

m-marxxs commented 6 months ago

+1

m-marxxs commented 6 months ago

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.

stale[bot] commented 4 months ago

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.

vTodorov commented 3 months ago

+1