-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Error: Cannot find module '../lightningcss.linux-x64-musl.node' #17958
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
Comments
Hey! Yeah this is expected, we can only fix this for our native extension but your bundler still has issues it seems. In the thread #15806 some folks have had issues with only our binary so we still went ahead with this fix. I suggest you add the necessary dependency for |
Can you clarify what you mean by:
I wouldn't expect our workaround to make your workaround worse. |
@philipp-spiess are you saying to upgrade npm version in dockerfile. I can build successfully on Mac Arm. but docker could not sample from dockerfile FROM node:18-alpine AS deps |
are you meaning to keep the optionalDependencies as it was. |
Regardless of the issue I'd recommend that, yes, Node 18 is no longer receiving updates and is "end of life" for example. But that might be a larger change based on what Node APIs you're using
If it worked before then yes, keep it. You should be able to remove the ones |
okay. upgrade node version won't fix this right? and what 4.1.6 fixed is we can remove ones oxide not lightningcss, and will it also be fixed? |
You will need the latest npm version, I don't know if it will work with older node versions. See https://github.com/npm/cli/releases/tag/v11.3.0
Yeah, Oxide is the library we maintain, Lightningcss is a third-party library so it is not as easy to apply the fix. We might have to add something in the future but ideally this can be fixed upstream. I want to wait first and see if our fix has helped at least somewhat. Are you able to get it working by adding back only this part? ![]() |
Thank you. yes, adding it back, it works. ![]() |
@philipp-spiess if trying lastest npm it will causes problem
|
@thatguychrisw yeah seems like it doesn't work with Node 18 anymore. Maybe you can try using |
yes, right node 20 can build successfully. just there are some warning as below.
|
What version of Tailwind CSS are you using?
For example: v4.1.6
What build tool (or framework if it abstracts the build tool) are you using?
For example: Next.js 15.3.1
What version of Node.js are you using?
dockerfile: node:18-alpine
For example: Chrome, Safari, or N/A
Ubuntu Docker
The text was updated successfully, but these errors were encountered: