Skip to content
New issue

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

Build Error: Unsupported output style "nested” #1971

Closed
Jastin-Infj opened this issue May 19, 2023 · 1 comment
Closed

Build Error: Unsupported output style "nested” #1971

Jastin-Infj opened this issue May 19, 2023 · 1 comment

Comments

@Jastin-Infj
Copy link

Jastin-Infj commented May 19, 2023

Ideal Movement

"nested" works correctly and the css files are stored in the "css" folder dedicated to dist.

Current Status:

"nested" is not called and an error occurs as with "title". See screenshot (1) for details.

Also, "expanded" and "compact" work fine and are stored in the "css" folder dedicated to dist of css files.

What have done so far.

Referring to other issues

I have installed fiber and sass-loader but they are failing.

Referenced sites

dcloudio/uni-ui#126

Development environment

OS: Linux Ubuntu22.04 LTS

installed packages

  • npm v9.6.7
  • node v18.0.0 (Using nodebrew)
  • gulp-cli v2.3.0 (local 4.0.2)

source code:

gulpfile.js

'use strict'

const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));

function buildStyles() {
  return gulp.src('./_src/sass_fld/**/*.scss')
    .pipe(sass({outputStyle: "nested"})).on('error',sass.logError)
    .pipe(gulp.dest('./css'));
};

exports.build = buildStyles;

function watch(){
  gulp.watch('./_src/sass_fld/**/*.scss',buildStyles);
}

exports.watch = watch;

exports.default = gulp.series(buildStyles,watch);

package.json

"devDependencies": {
    "@dcloudio/uni-ui": "^1.4.27",
    "fibers": "^5.0.3",
    "gulp": "^4.0.2",
    "gulp-sass": "^5.1.0",
    "sass": "^1.62.1",
    "sass-loader": "^13.2.2"
  }

Screenshots:

**outputStyle: “nested” or “compact” 1

Untitled

tree -L 3 -I node_modules

.
├── _src
│   ├── css
│   │   └── style.css
│   └── sass_fld
│   └── style.scss
├── gulpfile.js
├── package-lock.json
└── package.json

**outputStyle: “expanded”: or “compressed” 2

Untitled (1)

tree -L 3 -I node_modules

.
├── _src
│ ├── css
│ │ └── style.css
│ └── sass_fld
│ └── style.scss
├── css
│ └── style.css

├── gulpfile.js
├── package-lock.json
└── package.json

@jathak
Copy link
Member

jathak commented May 22, 2023

This is working as intended. Past (now deprecated) Sass implementations supported a "nested" output style, but Dart Sass never has, and the JS API specifically only supports "expanded" and "compressed"

@jathak jathak closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants