Skip to main content
Inspiring
May 5, 2018
Answered

Unable to use @import in SCSS

  • May 5, 2018
  • 2 replies
  • 4003 views

Hi,

I have a brand new computer. I have only installed Dreamweaver and a few other Adobe products, I have not installed any Ruby by myself or anything.

In my Dreamweaver site, I am using SCSS. The SCSS compiles when I save the file, and it works just fine mostly.

However, when I add an import, it doesn't compile.

For example, if I put this line: "@import 'assets/styles/reset';" then I get an error.

This is the error

C:/Program Files/Adobe/Adobe Dreamweaver CC 2018/ruby/lib/ruby/gems/2.4.0/gems/sass-3.5.3/lib/sass/importers/filesystem.rb:152: [BUG] Segmentation fault

How can I be able to import using the Dreamweaver SCSS compiler?

Thanks.

This topic has been closed for replies.
Correct answer griffen ★

it seems so that you have a problem with the installation compiler


Hi all

I just wanted to let you know I have found an answer.

The site was saved in a OneDrive folder.

Having a site not on OneDrive works just fine.

I found this answer on PhpStorm technical support website and it works for Dreamweaver as well.

Thanks

2 replies

B i r n o u
Community Expert
Community Expert
May 6, 2018

pourriez vous tester deux choses

  • que se passe-t-il si vous importez de la manière @import "assets/*";
  • et si vous réduisez l'arborescence d'un niveau ?
  • si vous renommez l'arborescence par exemple @import "materials/scss/reset"... bien sur pensez à renommer les dossiers
  • et si vous utilisez des doubles quotes au lieu de simple dans le @path ?

je vous propose cela car j'ai eu quelques souicis de ce style avec le compileur mis en place par DW

Inspiring
May 6, 2018

Hi,

Thank you for your suggestions.

I tried every bullet you suggested, however, they all produce the same error.

Thanks for your help though!

B i r n o u
Community Expert
Community Expert
May 7, 2018

and what's happen if you just import a _dummy.scss file from the same root level ?

BenPleysier
Community Expert
Community Expert
May 5, 2018

Have you added a leading underlying dash to the partials?

For example, if you have

@import "bootstrap";

@import "mystyles";

@import "font-awesome";

the partials will be named

_bootstrap.scss

_mystyles.scss

_font-awesome.scss

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Inspiring
May 5, 2018

Hi,

Yes. The file I want to import is called _reset.scss and it is located in this relative path assets/styles/_reset.scss.

Here is my directory of my site.

BenPleysier
Community Expert
Community Expert
May 6, 2018

That's good to know that it works for some people.

Is there a way to fix whatever has broken on my computer? I have even tried uninstalling and reinstalling Dreamweaver, and the problem persists.


Please paste the full error message and Backtrace here

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!