You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiled main.css that contains all of tailwindcss
Actual Behavior
However, while postcss is able to resolve and include "tailwindcss/base", it fails on components and utilities. With the following error:
ERROR in ./assets/css/main.css
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
TypeError: Cannot read property 'type' of undefined
at C:\Users<redacted>\omniasoft\assets\css\main.css:2:1
at AtRule.normalize (C:\<redacted>\node_modules\tailwindcss\node_modules\postcss\lib\container.js:673:22)
at AtRule.prepend (C:\<redacted>\node_modules\tailwindcss\node_modules\postcss\lib\container.js:413:24)
at AtRule.prepend (C:\<redacted>\node_modules\tailwindcss\node_modules\postcss\lib\at-rule.js:64:73)
at C:\<redacted>\node_modules\tailwindcss\lib\lib\substituteResponsiveAtRules.js:44:27
at C:\<redacted>\node_modules\postcss\lib\container.js:159:16
at C:\<redacted>\node_modules\postcss\lib\container.js:82:18
at AtRule.each (C:\<redacted>\node_modules\postcss\lib\container.js:68:16)
at AtRule.walk (C:\<redacted>\node_modules\postcss\lib\container.js:79:17)
at AtRule.walkAtRules (C:\<redacted>\node_modules\postcss\lib\container.js:157:17)
at C:\<redacted>\node_modules\tailwindcss\lib\lib\substituteResponsiveAtRules.js:38:19
NOTE: I did downgrade to postcss-loader 3.0.0 and I was able to "compile" the same main.css file. This was using the exact same configuration and versions. Maybe this is a regression somehow?
I have a pure tailwind main.css that I am trying to bundle using webpack 5 assets system.
Expected Behavior
Compiled main.css that contains all of tailwindcss
Actual Behavior
However, while postcss is able to resolve and include "tailwindcss/base", it fails on components and utilities. With the following error:
NOTE: I did downgrade to postcss-loader 3.0.0 and I was able to "compile" the same main.css file. This was using the exact same configuration and versions. Maybe this is a regression somehow?
Code
webpack.config.js
How Do We Reproduce?
webpack
to buildThe text was updated successfully, but these errors were encountered: