cssinjs / cssinjs/jss-loader

webpack 4.16.5 unknown property 'jssLoader'

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
65
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration[0] has an unknown property 'jssLoader'. These properties are valid:
object { mode?, amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, module?, name?, node?, output?, optimization?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions? }

Perhaps the following is the correct syntax in Webpack 4?

```
import jssCamelCase from 'jss-camel-case';
import jssDefaultUnit from 'jss-default-unit';
import jssGlobal from 'jss-global';
import jssNested from 'jss-nested';
import jssPropsSort from 'jss-props-sort';
import jssVendorPrefixer from 'jss-vendor-prefixer';

...
use: [
{
loader: 'jss-loader', // compiles JSS to CSS
options: {
plugins: [
jssCamelCase,
jssDefaultUnit,
//jssGlobal,
jssNested,
jssPropsSort,
jssVendorPrefixer
]
}
}
]
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.