Update from version 3.2.0 to latest 4.1.0 breaks build. Undefined scss variables
See original GitHub issueHello @pmowrer ,
for my current project we updated the node-sass-json-importer from version 3.2.0 to version 4.1.0 but that causes the build to break with error message of undefined variables. The variables it complains about are normal scss variables within scss files which are not part of any json file (see screenshot). Any idea?
The project setup is build with grunt. Using node-sass und grunt-sass. The relevant part in grunt config is the following:
const jsonImporter = require('node-sass-json-importer');
module.exports = {
css : {
options: {
importer: jsonImporter,
style: 'nested',
precision: 8,
trace: true,
lineNumbers: true,
sourceMap: true,
sourceComments: true
},
files : [{
expand: true,
cwd: '<%= package.sourceFolder %>/scss/',
src: ['**/*.scss'],
dest: '<%= package.buildFolder %>/css/',
ext: '.css'
}]
}
}
It would be unfortunate circumstances if we would be forced to stick with an old version of node-sass-json-importer unable to update.
Best regards, Annick
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
rake aborted! Sass::SyntaxError: Undefined variable: "$alert ...
I moved _variables. scss from bootstrap gem folder to stylesheets and renamed this file as variables and imported it to application. scss But...
Read more >Release notes | U.S. Web Design System (USWDS) - Digital.gov
Here you'll find our release notes — summaries of bug fixes, new features, and other updates introduced in each release. Have suggestions for...
Read more >Changelog - Sphinx documentation
Please notice it changes the output of HTML builder. Some themes do not support it, and you need to update your custom CSS...
Read more >Bigtop Project Release Notes
[BIGTOP-3669] - Use maven instead of ant to build ZooKeeper ... [BIGTOP-3643] - Upgrade ubuntu version example in gradle task description ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closed by #83
IMHO this is an issue with #74 and that commit should be reverted in order to fix it.
The reasoning behind this is that sass either expects an object literal with a
contents
key in order to load that contents, or an object literal with afile
key to load that file as though it had been imported directly (as seen in docs). But not an object literal containing bothfile
andcontents
.@pmowrer would you accept a pull request reverting that behavior?