Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Unable to use @import in SCSS

Explorer ,
May 04, 2018 May 04, 2018

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.

3.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , May 09, 2018 May 09, 2018

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

Translate
Community Expert ,
May 06, 2018 May 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2018 May 06, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2018 May 06, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2018 May 06, 2018

Unfortunately again, it is the same error.

The only type of import I can get to work is if I import a .css file; example, @import "another.css"; compiles to @import url(another.css);

Sadly, this isn't what I am wanting to achieve.

Thank you so much for trying to help me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2018 May 07, 2018

just another shoot... what give a full explicit import with no partials at all

I mean create a style.scss file that @import a foo.scss file (remark that there is not use of undetscore)

so two pôints

first use @import "foo.scss";

second verify if in anyway the foo.css was also physically render beside the style.css

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines