Closed Swivelgames closed 1 year ago
Hello and thanks for the feedback 😀
Is npm i -D lightningcss --force
works to fix this issue instead of a OS specific dependency?
I wholly agree. OS-specific dependencies should be avoided whenever possible. Adding lightningcss
as a dependency directly appears to solve the issue.
Thanks for the feedback, it will be added as dependency in the next update✌️
Fixed on dev branch in commit 8b9f693, I close the issue ✌️
Seems there's an issue with lightningcss finding the correct node extension when building on Linux.
For those getting a similar error, the workaround seems to be to install the appropriate
lightningcss
extension manually:In my case, it's looking for
lightningcss.linux-x64-gnu.node
, so the following resolved the error:Don't forget the
--force
argument, since it's required to resolve other dependency issues in this project.Good luck!