This error appear in the Initializing step
Diagnosis:
The build failure is caused by a syntax error related to a CommonJS module while using the Tailwind CSS library in the Nuxt project.
Solution:
To resolve this issue, you can update the import statement to use the default export as suggested in the error message.
- Replace the import statement in your code from:
import pkg from 'tailwindcss';
- To import the default export:
import tailwindcss from 'tailwindcss';
After making this change, commit the updated code to your repository and trigger a new build to verify that the issue has been resolved.
Ok, but in locale it work with same Node and NPM version. Also after clear and reinstall node_modules
and package-lock
. This import is inside some dependencies so i can’t do anything