Our blazing fast Grid component built with pure JavaScript


Post by dev_man_44 »

I use npm way of grid component. I have imported the css file into my tailwind.css file as below:

@import "@bryntum/grid/grid.stockholm.css";

But it throw error when I want to build the app for production:

Attachments
Screenshot at Mar 15 13-15-53.png
Screenshot at Mar 15 13-15-53.png (116.21 KiB) Viewed 908 times
Screenshot at Mar 15 13-14-28.png
Screenshot at Mar 15 13-14-28.png (118.93 KiB) Viewed 908 times

Post by sergey.maltsev »

Hi!

Seems some css code is not compatible with the @nuxt css loader
You may see which symbol is at line 1, column 32 in css file.
Could you please check if upgrading @nuxt or it's css loader may help you?

If you won't be able to resolve please attach some application we can build and see this error.


Post by dev_man_44 »

.b-fa-li {
  left: calc(var(--b-fa-li-width, 2em) * -1);
  position: absolute;
  text-align: center;
  width: var(--b-fa-li-width, 2em);
  line-height: inherit;
}

This is the code throws error


Post by sergey.maltsev »

According to these docs it is correct CSS declaration
https://developer.mozilla.org/en-US/docs/Web/CSS/var()#syntax

You may set value for --b-fa-li-width if you want to override default value.


Post by dev_man_44 »

Is there any scss decleration for npm module? I can not find one. So I guess to override I should use html root variables.

I have imported .min css file directly without postcss processing and eveything works correctly.


Post by sergey.maltsev »

Hi!

Sass files available for licensed version of Grid component. Trial version doesn't have it.

To solve issues with css you may try to define variables in you application's css file or include css resources to HTML head tag (https://nuxtjs.org/docs/components-glossary/head/)


Post by dev_man_44 »

I have already license for Grid component. I used it by npm way with login to your repository. But there is no scss files exist in it.

I have already edited nuxt head way and it works. But can not figure out why importing and build breaks the process.


Post by sergey.maltsev »

Hi!

npm packages don't contain source files.
You may download full sources from Customer Zone.
https://customerzone.bryntum.com/


Post Reply