CSS Sass Basics Write Smart and Efficient CSS with Sass Nesting Media Queries

Anusha Lee
PRO
Anusha Lee
Pro Student 14,785 Points

Hi I keep getting Error like this: Error: File to import not found or unreadable: base/reset.

Hi everyone! Has anyone encountered this before? This shows up on my style.css and I've checked the imports and I am certain that they are correct. I've been stuck for hours.

/home/treehouse/workspace/scss on line 12 of scss/style.scss

Here it is: https://w.trhou.se/ag13q82rys

Thank you in advance.

Nick Budak
Nick Budak
Pro Student 12,137 Points

Hi Anusha,

It looks like _base.scss and _reset.scss are actually nested inside the components/base folder in your workspace. Try using

@import 'components/base/reset',
        'components/base/base';

Sass import paths are relative to the current file, and your style.scss is at the same level as the components/ folder.

Anusha Lee
Anusha Lee
Pro Student 14,785 Points

Hi Nick, thank you very much! It works!!!