vue-hackernews | A Vue hacker news application with tests | Unit Testing library
kandi X-RAY | vue-hackernews Summary
kandi X-RAY | vue-hackernews Summary
A Hacker News clone with tests, written for the book Testing Vue.js Applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create an application object
vue-hackernews Key Features
vue-hackernews Examples and Code Snippets
Community Discussions
Trending Discussions on vue-hackernews
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
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