- Saved searches
- Use saved searches to filter your results more quickly
- ValidationError: CSS Loader Invalid Options #855
- ValidationError: CSS Loader Invalid Options #855
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- [2.0.0] ValidationError: CSS Loader Invalid Options — options should NOT have additional properties #863
- [2.0.0] ValidationError: CSS Loader Invalid Options — options should NOT have additional properties #863
- Comments
- Expected Behavior
- Actual Behavior
- Code
- How Do We Reproduce?
- Saved searches
- Use saved searches to filter your results more quickly
- ValidationError: CSS Loader Invalid Options (css-loader 2.1.1) #955
- ValidationError: CSS Loader Invalid Options (css-loader 2.1.1) #955
- Comments
- Expected Behavior
- Actual Behavior
- Code
- Saved searches
- Use saved searches to filter your results more quickly
- ValidationError: CSS Loader Invalid Options #492
- ValidationError: CSS Loader Invalid Options #492
- Comments
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
ValidationError: CSS Loader Invalid Options #855
ValidationError: CSS Loader Invalid Options #855
Comments
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
Describe the bug
App crashes when you run it.
To Reproduce
- tns create app
- npm i nativescript-dev-webpack@next —save-dev
- tns run android —bundle —env.uglify
- you will see exception:
WARNING in ./app.css Module build failed (from ../node_modules/css-loader/dist/cjs.js): ValidationError: CSS Loader Invalid Options options should NOT have additional properties at validateOptions (/Users/nsbuilduser/workspace/CLI-master-tests-build-android-osx/TestApp/node_modules/css-loader/node_modules/schema-utils/src/validateOptions.js:32:11) at Object.loader (/Users/nsbuilduser/workspace/CLI-master-tests-build-android-osx/TestApp/node_modules/css-loader/dist/index.js:44:28) @ . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ ./app.css @ ../node_modules/nativescript-dev-webpack/load-application-css-regular.js @ ../platforms/android/app/snapshot-entry.js ERROR in NativeScriptSnapshot. Snapshot generation failed! Target architecture: arm64-v8a # # Fatal error in , line 0 # Check failed: blob.data. # # # #FailureMessage Object: 0x7ffee1ce5df0 ==== C stack trace =============================== 0 mksnapshot-arm64 0x000000010ed29ea3 mksnapshot-arm64 + 14786211 1 mksnapshot-arm64 0x000000010ed2ee8b mksnapshot-arm64 + 14806667 2 mksnapshot-arm64 0x000000010ed24a15 mksnapshot-arm64 + 14764565 3 mksnapshot-arm64 0x000000010df11a35 mksnapshot-arm64 + 6709 4 libdyld.dylib 0x00007fff7b732015 start + 1 5 . 0x0000000000000006 0x0 + 6 ***** Generating snapshot for x86 ***** ***** Generating snapshot for armeabi-v7a ***** Executing webpack failed with exit code 2.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.0.0] ValidationError: CSS Loader Invalid Options — options should NOT have additional properties #863
[2.0.0] ValidationError: CSS Loader Invalid Options — options should NOT have additional properties #863
Comments
Expected Behavior
I can use the css-loader, I have not changed anything.
Actual Behavior
ERROR in ./node_modules/material-design-icons/iconfont/material-icons.css Module build failed (from ./node_modules/css-loader/dist/cjs.js): ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js): ValidationError: CSS Loader Invalid Options options should NOT have additional properties at validateOptions (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/schema-utils/src/validateOptions.js:32:11) at Object.loader (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/css-loader/dist/index.js:44:28) at runLoaders (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/webpack/lib/NormalModule.js:301:20) at /media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at iterateNormalLoaders (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:218:10) at /media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:233:3 at context.callback (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at Object.render [as callback] (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/sass-loader/lib/loader.js:76:9) at Object.done [as callback] (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/neo-async/async.js:8077:18) at options.success (/media/linux-nvme/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-material/node_modules/node-sass/lib/index.js:308:32) @ ./node_modules/material-design-icons/iconfont/material-icons.css
Code
// webpack.config.js // If your bitchin' code blocks are over 20 lines, please paste a link to a gist // (https://gist.github.com). rules: [ test: /\.less$/, use: [ loader: 'style-loader' , >, loader: 'css-loader', >, loader: 'less-loader', >], >,
How Do We Reproduce?
It happens with css-loader 2.0.0
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidationError: CSS Loader Invalid Options (css-loader 2.1.1) #955
ValidationError: CSS Loader Invalid Options (css-loader 2.1.1) #955
Comments
- Operating System: Windows 10 x64 1903
- Node Version: 10.15.3
- NPM Version: 6.4.1
- webpack Version: 4.32.2
- css-loader Version: 2.1.1
- css-modules-typescript-loader: 2.03
- sass-loader: 7.1.0
Expected Behavior
Actual Behavior
ERROR in ./***.scss Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js): ValidationError: CSS Loader Invalid Options options.modules should be boolean options.modules should be string options.modules should be equal to one of the allowed values options.modules should match some schema in anyOf at validateOptions (E:\Projects\***\node_modules\schema-utils\src\validateOptions.js:32:11) at Object.loader (E:\Projects\***\node_modules\css-loader\dist\index.js:44:28) at runLoaders (E:\Projects\***\node_modules\webpack\lib\NormalModule.js:302:20) at E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at runSyncOrAsync (E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:143:3) at iterateNormalLoaders (E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:232:2) at iterateNormalLoaders (E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:221:10) at E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:236:3 at context.callback (E:\Projects\***\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at Object.render [as callback] (E:\Projects\***\node_modules\sass-loader\lib\loader.js:76:9) at Object.done [as callback] (E:\Projects\***\node_modules\neo-async\async.js:8067:18) at options.success (E:\Projects\***\node_modules\node-sass\lib\index.js:308:32) @ ./***.tsx 9:0-26 @ multi ./***.tsx webpack-hot-middleware/client
Code
module: rules: [ // . test: /\.scss$/, use: [ MiniCssExtractPlugin.loader, loader: "css-modules-typescript-loader">, loader: "css-loader", options: modules: localIdentName: "[name]_[local]_[hash:base64]", >, sourceMap: true > >, loader: "sass-loader", options: sourceMap: true>> ] >, ] >,
When using modules: true there is no issue. Is this a bug or a bad configuration? I have followed documentation for css-loader . Please advise.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidationError: CSS Loader Invalid Options #492
ValidationError: CSS Loader Invalid Options #492
Comments
Recently i decided to upgrade my frontend dependencies to use your great Webpack 4 .
No extraordinary plugins was enabled. It was just Vue loader and sass Loader in webpack config.
Then i started recieved this kind of error:
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js): ValidationError: CSS Loader Invalid Optionsoptions should NOT have additional properties
I debug things a little bit and discovered that it is because something initialize option for css-loader like this: < minimize: false, sourceMap: true, importLoaders: 0 >. Unfortunatelly form version 1.0.0 of css-loader there is a BC touching this: minimize option was removed.
The problem occurs with newest css-loader (2.1.0) onboard. (I thought i need to install it like i did before)
I tried everything without luck. After a while I decided to remove this package from my packages.json and rely on version from webpack dependency (1.0.1) and not obviously things started to work.
So i know now that i cant upgrade it for now, but is there a plan for future to support newest css-loader? Another question is how to get info about what plugin or where exaclty is this options injection so maybe it can be patched there?
webpack.config.js // webpack.config.js var Encore = require('@symfony/webpack-encore'); Encore .setOutputPath('public/build/') .setPublicPath('/build') .addEntry('app', './assets/js/app.js') .addEntry('base', './assets/js/base.js') .enableSingleRuntimeChunk() .splitEntryChunks() .cleanupOutputBeforeBuild() .enableBuildNotifications() .enableSourceMaps(!Encore.isProduction()) .enableVersioning(Encore.isProduction()) .configureBabel(function(babelConfig) < babelConfig.plugins = [ "@babel/transform-runtime", "@babel/transform-async-to-generator" ] >) .enableSassLoader() .enableVueLoader() ; module.exports = Encore.getWebpackConfig();
The text was updated successfully, but these errors were encountered: