Foundation file to import not found or unreadable - sass

Using the new Yeoman beta 1.0
I bootstrapped an angular application, and installed foundation via bower.
When I run my server, I get this error:
error app/styles/main.scss (Line 7 of app/components/foundation/scss/foundation.scss: File to import not found or unreadable: modular-scale.
The import is #import "modular-scale";
I tried to change that to #import "foundation/functions/modular-scale";
But got a loop warning then, saying it was trying to import itself.
Tried adding the ruby gem 'modular-scale' in my grunt file, under compass with
require: 'modular-scale'
But it doesn't seem to work either
Anyways, I am not sure what to do here.

I had a similar problem when migrating an app to 1.0. Bower was installing the components into a top-level components directory instead of at app/components. If that is the case, one fix is to add a file .bowerrc with
{
"directory": "app/components"
}
I'm not sure the root cause, as creating a new webapp with Yeoman 1.0 doesn't suffer from this problem.

Related

Next JS: unable to use scss on Windows

I am building a Next JS application. To admit, this is my first exposure to Next JS. Now, I am having a problem using SCSS with my Next JS application. I have created a file called, assets/auth.scss. Then I imported it into pages/_app.js as follow.
import '../assets/auth.scss';
When I run "npm run dev", I am getting the following error.
./node_modules/next/dist/compiled/css-loader/cjs.js??ruleSet[1].rules[2].oneOf[7].use[1]!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ruleSet[1].rules[2].oneOf[7].use[2]!./node_modules/nex
t/dist/compiled/resolve-url-loader/index.js??ruleSet[1].rules[2].oneOf[7].use[3]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[2].oneOf[7].use[4]!./assets/auth.scss
Error: Node Sass version 6.0.1 is incompatible with ^4.0.0 || ^5.0.0.
Error: Cannot find module 'C:\Users\Acer\Desktop\shar-kya-mal-next-js\nextjs-blog\.next\build-manifest.json'
Require stack:
Then I tried installing node-sass package too. It still does not work. How can I fix it?
Do you use npm install sass or node sass? Every next project where i will use scss i use npm install sass and it works normally. Do you do something different?
Try to use npm install sass or yarn install sass

pythonAnywhere AttributeError : module 'pytube' has no attribute 'YouTube'

I am making a project with Django and pytube in python 3.6, but when I run the code below in my python anywhere project, I get this error:
AttributeError : module 'pytube' has no attribute 'YouTube'.
import pytube
url = input()
yt = pytube.YouTube(url)
This probably is because there are multiple packages named pytube, and I think that I installed the wrong one. Which one do I have to install? And should I than use pip or pip3?
I already tried uninstalling pytube and reinstalling (also via the GitHub link which you can find from other people who are having issues with this: git+https://github.com/nficano/pytube.git)

How to fix library dependence in a conan package

I am trying to install qt/5.14.2 with conan.
Using
qt/5.14.2#bincrafters/stable
I receive
ERROR: libpq/11.5: Error in package_info() method, line 211
self.cpp_info.components["pq"].requires.append("zlib::zlib")
AttributeError: 'Component' object has no attribute 'requires'
OK, there is a bug in libpq/11.5
I am trying to downgrade to
libpq/11.4#bincrafters/stable
ERROR: Conflict in qt/5.14.2#bincrafters/stable:
'qt/5.14.2#bincrafters/stable' requires 'zlib/1.2.11' while 'libpq/11.4#bincrafters/stable' requires 'zlib/1.2.11#conan/stable'.
To fix this conflict you need to override the package 'zlib' in your root package.
BTW:
Why is it not enough to require the correct version of the library, and requiring the same repository? (and require two different repositories in two different packages for the same dependence)
OK, I attempted
zlib/1.2.11#bincrafters/stable
WARN: libpq/11.4#bincrafters/stable: requirement zlib/1.2.11#conan/stable overridden by your conanfile to zlib/1.2.11#bincrafters/stable
zlib/1.2.11#bincrafters/stable: Not found in local cache, looking in remotes...
zlib/1.2.11#bincrafters/stable: Trying with 'conan-center'...
zlib/1.2.11#bincrafters/stable: Trying with 'minres'...
zlib/1.2.11#bincrafters/stable: Trying with 'bincrafters'...
ERROR: Failed requirement 'zlib/1.2.11#bincrafters/stable' from 'libpq/11.4#bincrafters/stable'
ERROR: Unable to find 'zlib/1.2.11#bincrafters/stable' in remotes
Finally, I arrived at
libpq/11.4#bincrafters/stable
zlib/1.2.11#conan/stable
qt/5.14.2#bincrafters/stable
After this, it looks like it was oK:
Installing (downloading, building) binaries...
qt/5.14.2#bincrafters/stable: Retrieving package 93c70de10405da9f2d5a1f42b8c299ca7af869d2 from remote 'bincrafters'
Downloading conanmanifest.txt
Downloading conaninfo.txt
Downloading conan_package.tgz
....qt/5.14.2#bincrafters/stable: Package installed 93c70de10405da9f2d5a1f42b8c299ca7af869d2
qt/5.14.2#bincrafters/stable: Downloaded package revision 0
However, the install fails with
CMake was unable to find Qt5, put qmake in your path or set
QTDIR/QT_QMAKE_EXECUTABLE.
The package is downloaded, I see all components in the corresponding subdirectory in my home directory. However, unlike the other components, it is not installed, before CMake attempts to find it.
What do I wrong?
In case of any strange behavior of conan, upgrade! For me, switch 1.24.0 -> 1.28.1 with configs clean up fixed the same problem with libpq/11.5

Error importing sass files

I am having an issue trying to import SCSS files in my Nativescript app. I am adding these lines to add my default theme styles in my app, the lines are added in the app.android.scss and app.ios.scss:
#import '~/assets/skin';
#import '~/assets/list';
The files are inside app/assets folder and their real names are: _skin.scss and _list.scss.
The problem is when I try to use Nativescript Sidekick and build for iOS in the cloud it gives me this error:
Found peer node-sass
[17-10-25 13:55:16.820] (Info) Error: It's not clear which file to import for '#import \"assets/skin\"'.
[17-10-25 13:55:16.822] (Info) Candidates:
[17-10-25 13:55:16.823] (Info) assets/_skin.scss
[17-10-25 13:55:16.825] (Info) assets/skin.css
But building the app for android locally it works.
Any suggestion?
Thanks!

Foundation Sass Install App.css error

Followed the instructions to download the sass Foundation version. (http://foundation.zurb.com/docs/sass.html)
I keep getting the following error in app.css
Syntax error: File to import not found or unreadable: foundation/_functions.
Load path: /Users/xxx/Desktop/sandbox/app
on line 13 of scss/_settings.scss
from line 1 of ./scss/app.scss
Any ideas?
Inside of the foundation folder there should be a file named _functions. The underscore in front of the name indicates that it's a partial file and is compiled into app.css using #import.
1: Check to see if _functions is in the foundation folder
2: If it is, check your import path
3: If it's not, try downloading Foundation again
Just as a tip, I like to use a app called Mixture.io. In addition to having a lots of its own features, it makes setting up a Foundation project a cinch.
Hope this helps.

Resources