Comments (6)
Fixed in v0.1.0
from next-plugins.
Along with the css
configurations mentioned here, What if I want to export also the following settings in next.config.js
:
module.exports = {
useFileSystemPublicRoutes: false,
poweredByHeader: false
}
How can this be achieved?
from next-plugins.
Without typescript!, and i get same Error!
> Failed to build
{ Error: (client) ./styles/style.less
Module build failed: ValidationError: Style Loader Invalid Options
options['importLoaders'] should NOT have additional properties
from next-plugins.
+1, same here:
ERROR Failed to compile with 1 errors 20:05:16
error in ./styles/main.scss
Module build failed: ValidationError: Style Loader Invalid Options
options['importLoaders'] should NOT have additional properties
@ ./pages/index.jsx 19:0-29
@ multi ./pages/index.jsx
./styles/main.scss
:
html,
body {
background-color: papayawhip;
}
./pages/index.jsx
:
import React, { Component, Fragment } from 'react'
import Link from 'next/link'
import '../styles/main.scss'
class Landing extends Component {
render () {
return (
<Fragment>
<p>hi there</p>
<Link href='/test'>come here</Link>
</Fragment>
)
}
}
export default Landing
from next-plugins.
I solved by installing the dependencies below
"dependencies": {
"css-loader": "^0.28.9",
"extract-text-webpack-plugin": "^3.0.2",
"find-up": "^2.1.0",
"ignore-loader": "^0.1.2",
"postcss-loader": "^2.0.10",
"style-loader": "^0.19.1"
},
"devDependencies": {
"webpack": "^3.10.0"
}
from next-plugins.
same issue here
Module build failed: ValidationError: Style Loader Invalid Options
options['importLoaders'] should NOT have additional properties
@ ./pages/components/alert.js 10:0-37
@ multi ./pages/components/alert.js
./pages/index.scss
:
body {
background: red;
}
./pages/index.jsx
:
import styles from './index.scss';
export default () => (
<div>Hello world</div>
);
next.config.js
:
const withSass = require('@zeit/next-sass');
module.exports = withSass({
webpack(config, options) {
config.module.rules.push({
test: /\.svg$/,
issuer: [/\.css$/, /\.(scss|sass)$/],
loader: 'file-loader',
query: {
name: 'assets/icons/[name].[ext]',
},
});
return config;
},
});
from next-plugins.
Related Issues (20)
- Can not install @zeit/next-css HOT 1
- Yarn 2 - missing webpack@^4.0.0 dependency in @zeit/next-css@npm:1.0.1 HOT 1
- Cannot get CSS variables to work with npm module. HOT 2
- @zeit/next-workers: ValidationError: Invalid options object. HOT 3
- antd style does not take effect HOT 1
- with-less will disable build in css-loader HOT 2
- Absolute import with TypeScript produces errors with non ts files
- devtool option isn't working with useSourceMap HOT 4
- Unable to load fonts from SCSS using NextJS 9.5.5 HOT 1
- Source maps resolved wrongly @zeit/next-source-maps HOT 2
- @zeit/next-sass has to be updated to use node-sass v5 HOT 2
- Loading background image from SCSS doesn't work HOT 1
- Style hot reload not triggered with legacy @zeit/next-css or @zeit/next-less plugins HOT 1
- next-workers not working in Next 10? HOT 3
- Module parse failed using next-less in a typescript next js project
- CSS and SCSS with NextJS (issue while using multiple loaders: next-sass, next-css) HOT 1
- Error: PostCSS plugin tailwindcss requires PostCSS 8. HOT 1
- `localIdentName` default value for `dev` HOT 1
- Webpack plugin InjectManifest nextjs source maps "You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer"
- less config error HOT 1
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 next-plugins.