Replies: 2 comments
-
Could be related, but I had to remove 'purgeLayersByDefault' from tailwind.config.js in order for production to work (when local was working fine). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am importing
{Head} from 'next/document'
and extending it to add all the style tags generated by tailwind CSS as inline-styling in the head. It works fine locally but fails with the error messageCannot destructure property 'assetPrefix' of 'this.context._documentProps' as it is undefined.
during deployment.Here is my build log:
The error as indicated above is coming in the
_document.js
file but it works fine locally.Beta Was this translation helpful? Give feedback.
All reactions