Skip to content

Tag: javascript

Use named slots inside grand-child component

I’ve created a global components extending Bootstrap Vue Table component to made a custom template for each table named VTable. The Bootstrap Vue Table component have possibility to use named slots to customize the data rendering. I use the global table component inside another one using the new custom …

Babel not compiling vendors chuck

I migrated to Webpack 4 and set up everything according to the Docs, however, my vendors.js chunk is not getting compiled like the main.js chunk. I have placed the vendors into the optimization.splitChunks.cacheGroups object, as the docs suggested, but didnt find a way to make these “cacheGroups” …

I don’t how why my backgroundImage doesn’t work

Why does my banner doesn’t change her background? Please help me. When I run the file the console tells me: Uncaught TypeError: flechedroite.addEventListener is not a function I really don’t understand. I’m a beginner in Javascript so please explain me with kind words how I can fix this erro…

How to render component children at parent

I’m familiar with ReactJS, but not with VueJS. Where can I place the component children at the parent component. I have this example in ReactJS, how can I create the same using VueJs: What is the {props.children} in VueJS ?? Answer The Vue analogy to the React “children” concept is the slots…

Javascript | Heap out of memory server side

I am getting error “Javascript | Heap out of memory” exeption when running our build in jenkins. We had similar issue in local and by setting node –max-old-space-size=8192 we have solved the issue. How do we get rid of the same on the server side? Answer If you are using Package.json file th…