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

Broken SASS dependency #3998

Closed
vit-koumar opened this issue Jan 31, 2017 · 2 comments
Closed

Broken SASS dependency #3998

vit-koumar opened this issue Jan 31, 2017 · 2 comments
Assignees

Comments

@vit-koumar
Copy link

Description

When trying to build a video.js project it fails on task sass:build complaining about not found file import.

Steps to reproduce

  1. Clone the repo
  2. Run npm i
  3. Run grunt dist

Results

Expected

Script finishes with successfully with Done, without errors.

Actual

Script finishes with an error Aborted due to warnings.

Error output

Running "sass:build" (sass) task
>> Error: File to import not found or unreadable: node_modules/videojs-font/scss/icons.
>>        Parent style sheet: /home/vit/Workspace/video.js/src/css/video-js.scss
>>         on line 5 of src/css/video-js.scss
>> >> @import "node_modules/videojs-font/scss/icons";
>>    ^
Warning:  Use --force to continue.

Additional Information

The broken import is the line 5 in src/css/video-js.scss which is @import "node_modules/videojs-font/scss/icons";. When I change it to @import "../../node_modules/videojs-font/scss/icons"; it works fine. I must be missing something.

versions

videojs

5.x and also 6.x

browsers

N/A

OSes

Tried on Linux Debian Stretch

plugins

N/A

@gkatsev
Copy link
Member

gkatsev commented Jan 31, 2017

I wonder if it's a change in node-sass/libsass since what we had used to work.

Looks like that is exactly the issue. In the latest release, they changed how it works: sass/node-sass#1876

Can you open a PR to update node-sass to the latest (as a minimum) and change the @import? Would be greatly appreciated.

@gkatsev
Copy link
Member

gkatsev commented Jan 31, 2017

Actually, need to do work that depends on this, so, I'll go ahead and fix it. Thanks for reporting it to get me to investigate, @vit-koumar.

@gkatsev gkatsev self-assigned this Jan 31, 2017
gkatsev added a commit to gkatsev/video.js that referenced this issue Jan 31, 2017
node-sass updated to remove the cwd from import paths.

Fix videojs#3998
gkatsev added a commit that referenced this issue Jan 31, 2017
node-sass updated to remove the cwd from import paths.

Fix #3998
OwenEdwards pushed a commit to OwenEdwards/video.js that referenced this issue Feb 1, 2017
node-sass updated to remove the cwd from import paths.

Fix videojs#3998
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants