michalsnik / vue-content-placeholders Goto Github PK
View Code? Open in Web Editor NEWComposable components for rendering fake (progressive) content like facebook in vue
License: MIT License
Composable components for rendering fake (progressive) content like facebook in vue
License: MIT License
My app was using scoped scss which was failing to render CSS for the component.
<style lang="scss" scoped>
</style>
I had to create an unscoped one and copy SCSS codes into there to make it working.
<style lang="scss">
</style>
Is this possible to change the color of the placeholder? I would like to use it in the dark more with more dark color?
Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
I'm trying to use this component with vue 3.
Will you provide any support ?
I tried something like this:
import { createApp } from 'vue'
import VueContentPlaceholders from 'vue-content-placeholders'
...
createApp(App).use(router)
.use(VueContentPlaceholders)
.mount('#app')
But this is what I got in the console:
vue-content-placeholders.common.js?5f56:1 Uncaught (in promise) TypeError: Cannot read property '_c' of undefined
at Proxy.render (vue-content-placeholders.common.js?5f56:1)
...
Thanks.
Maybe this is something I'm doing wrong (I'm not too flash at JS), but the content-placeholders
component seems to be only displaying the first sub-component. I've popped together a teeny app showing this here : https://github.com/ok200paul/placeholder-issue.
What am I doing wrong? :)
Any reason for this? Trying to implement onto an existing project but it's converting the body to red..
I used many ways but could not render my data after loading, hope to get help!
After adding this
import VueContentPlaceholders from 'vue-content-placeholders'
Vue.use(VueContentPlaceholders)
into my main.js of vue-cli webpack template with postcss, webpack shows me the following error:
app_1 | 20:28:59 webpack.1 | > Starting dev server...
app_1 | 20:29:25 webpack.1 | ERROR Failed to compile with 1 errors20:29:25
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | error in ./~/vue-content-placeholders/dist/vue-content-placeholders.css
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | Module build failed: Syntax Error
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | (5:1) Unknown word
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | 3 | // load the styles
app_1 | 20:29:25 webpack.1 | 4 | var content = require("!!../../css-loader/index.js??ref--8-1!./vue-content-placeholders.css");
app_1 | 20:29:25 webpack.1 | > 5 | if(typeof content === 'string') content = [[module.id, content, '']];
app_1 | 20:29:25 webpack.1 | | ^
app_1 | 20:29:25 webpack.1 | 6 | if(content.locals) module.exports = content.locals;
app_1 | 20:29:25 webpack.1 | 7 | // add the styles to the DOM
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | @ ./~/vue-content-placeholders/index.js 3:0-44
app_1 | 20:29:25 webpack.1 | @ ./src/main.js
app_1 | 20:29:25 webpack.1 | @ multi ./build/dev-client ./src/main.js
app_1 | 20:29:25 webpack.1 |
app_1 | 20:29:25 webpack.1 | > Listening at http://localhost:8080
in ssr mode, the animation doesn't work. what is the correct way to import css files.
In nuxt, I am importing it as mentioned in the README.md
Are you thinking about forking to react?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.