mgechev / angular-seed

🌱 [Deprecated] Extensible, reliable, modular, PWA ready starter project for Angular (2 and beyond) with statically typed build and AoT compilation
https://mgechev.github.io/angular-seed
MIT License
4.57k stars 1.45k forks source link

angular-seed SCSS error #2368

Open altipla-developer1 opened 5 years ago

altipla-developer1 commented 5 years ago

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

I'm following the guide (Working with SASS)[https://github.com/mgechev/angular-seed/wiki/Working-with-SASS] and the following error throws.

[12:53:07] Starting 'build.html_css'... TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object at assertPath (path.js:39:11) at Object.dirname (path.js:1268:5) at Object.importer (/home/alobaton/workspace/GOSTOCK/gostock-web/angular-seed/node_modules/node-sass-magic-importer/src/index.ts:92:32) at options.importer (/home/alobaton/workspace/GOSTOCK/gostock-web/angular-seed/node_modules/node-sass/lib/index.js:336:31)

Expected behavior

Compile with out problems.

Please tell us about your environment:

SO: Ubuntu 18.04.1 LTS 64 Bits RAM: 11,1 GiB Processor: AMD® A10-9600p radeon r5, 10 compute cores 4c+6g × 4

ArminZol commented 5 years ago

Just to confirm: have you changed all the CSS files to SCSS, still reference all the files as .css from your ts files, and enabled SCSS (for example you can set 'this.ENABLE_SCSS = true;' in your project.config.ts file)