vue-hackernews-2.0 | HackerNews clone built with Vue | Server Side Rendering library
kandi X-RAY | vue-hackernews-2.0 Summary
kandi X-RAY | vue-hackernews-2.0 Summary
HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Render an HTTP header .
vue-hackernews-2.0 Key Features
vue-hackernews-2.0 Examples and Code Snippets
Community Discussions
Trending Discussions on vue-hackernews-2.0
QUESTION
It happens when add in
.vue
file.
ANSWER
Answered 2020-Nov-10 at 09:47Pretty sure that this is to do with your webpack coniguration. I think it's because style loader is trying to inject your styles into the DOM (which obviously is not present on the server side). Hence the reference error. I'm not 100% sure, but try only using vue-style-loader. There's no need to put it in a chain with style-loader as they are pretty much doing the same thing.
Also run your build command on the project and take a look into the server-bundle. That will show you who's trying to access the DOM.
EDIT:
As a general approach to what you're trying to do, you should also include sass/css in one single rule, like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-hackernews-2.0
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page