-
Notifications
You must be signed in to change notification settings - Fork 747
Table Component throws error on bundling #6370
Comments
@blabbath The workaround is to configure
|
I'm not sure there's much we can do to fix this on our end... @hippee-lee , what are your thoughts on that? |
You are correct. The workaround to disable calc for postcss-calc is the most reliable way to deal with it. I've seen it crop up in multiple frameworks now. There are several issues open on the postcss-calc repo. Here is another from March 2019. My recommendation, @blabbath is to disable postcss-calc for the build. @mathisscott, One our end, we could revisit the usage of nested calc's (I believe thats what causes the error). However the last time I looked into it I didn't see an easy way to do the things we need to do in the style code without them. |
Thank you for your fast replies! |
It's hard to say for sure but we build the website with vuepress. There is a config.js file where we can configure things at build time. If I had this issue that is where I would start by adding: module.exports = {
postcss: {
plugins: {
'cssnano': {
preset: [
"default",
{
"calc": false
}
]
}
}
}
} In the one of the other issues I linked to, there is a comment about adding the override to the package.json file, so that might be an option also. |
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
When using the Table Component in a Vue 3 project and running npm run build the following error occurs:
When I delete the styling for the compact table from @cds/core/table/table.css
and import the table.css the build process runs as expected.
Versions
Clarity project:
Clarity version:
Framework:
Framework version:
vue3
Device:
The text was updated successfully, but these errors were encountered: