Comments (5)
10/23/18 Edit: the comment below is incorrect - apologies for misleading anyone!
Remove ctx.isClient
and replace with process.client
in nuxt-config.js
:
extend (config, { isDev }) {
if (isDev && process.client) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
from starter-template.
@XanderLuciano @NicoPennec Apologies for the misleading comment - I've updated my post directing people not to follow those instructions. Thanks for posting about the fix :)
from starter-template.
this issue is fixed by the following PR: #86
please, don't apply the @aeksco's proposal !
from starter-template.
This issue as been imported as question since it does not respect starter-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/starter-template/issues/c57.
from starter-template.
@aeksco This is incorrect and process.client
will be undefined.
from starter-template.
Related Issues (20)
- Apostrophes in project description aren't supported
- Can't use CSS files in new project
- when I run npm run dev show an error HOT 4
- Error during running npm run dev in project HOT 2
- new version nuxt HOT 2
- Lint does not run on save automatically. HOT 2
- Can't do nothing with starter template HOT 1
- Same port error ('EADDRINUSE') when running multiple projects HOT 1
- ELIFECYCLE error on npm run dev
- Starter template for nuxt 2
- I get ERROR Failed to compile with 5 errors after clear installation. 02:06:18 HOT 2
- Nuxt-Community Starter Template Fails to Build HOT 20
- Support for Vue Cli 3.0 HOT 1
- Integration with Vue CLI 3 HOT 1
- Add Testing Harness HOT 1
- CSSNext is a dangerous default that breaks core CSS functionality
- Deprecate the template
- Error on Installation HOT 1
- events.js:183 throw er; // Unhandled 'error' event HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-template.