KroneCorylus / ngx-colors

Simple yet elegant Material color picker for Angular
https:\\ngx-colors.web.app
MIT License
88 stars 24 forks source link

Not working in angular 18 #118

Closed shuZro closed 2 months ago

shuZro commented 3 months ago

Getting this error in Angular 18

11:50:17 AM [vite] error while updating dependencies: Error: ENOENT: no such file or directory, open 'C:\Users\sshourov\Documents\GitHub\voidless\webui\node_modules\ngx-cookie-service\fesm2022\ngx-cookie-service.mjs' at async open (node:internal/fs/promises:639:25) at async Object.readFile (node:internal/fs/promises:1249:14) at async extractExportsData (file:///C:/Users/sshourov/Documents/GitHub/voidless/webui/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:53029:26) at async file:///C:/Users/sshourov/Documents/GitHub/voidless/webui/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:52766:29 (x5)

KroneCorylus commented 3 months ago

Doesn't look like an error of ngx-colors.

shuZro commented 3 months ago

I get the error every time I import the colour module to one of my components. Is importing different for angular 18?

KroneCorylus commented 2 months ago

No, importing should work fine in Angular 18. The error you've provided doesn't seem to indicate an issue with ngx-colors. In fact, it points to the ngx-cookie-service package, which suggests that the problem might be related to Vite or how your packages are configured. Unfortunately, I'm not too familiar with Vite.