You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eyeglass:import @fastly/fui-color cannot be imported from /Users/jamesrosen/Code/snowcat/tmp/eyeglass_compiler-input_base_path-WdAFZ1zV.tmp/fastly/variables/_all.scss +0ms
eyeglass:import @fastly/fui-color cannot be imported from /Users/jamesrosen/Code/snowcat/node_modules/@fastly/style-guide/app/styles/fastly/variables/_all.scss +0ms
where this is always the top-level EyeglassModules instance, so this.tree.dependencies is always the top-level dependencies of the application, not the package in which the reference exists.
If this is intentional behavior, then it seems that any library should declare its eyeglass-module dependencies as peerDependencies so the consumer is forced to install them as first-class dependencies.
jamesarosen
changed the title
cannot import a file with a transitive dependency
cannot Sass-import a file with an eyeglass dependency
Dec 12, 2018
Background
Given this tree:
and these files:
Problem
I get
I've added some logging to
canAccessFrom
and gotThe first one makes sense to me.
@fastly/fui-color
isn't a direct dependency ofsnowcat
, so it wouldn't appear in the ("immediate") dependencies.But the second seems wrong. Why does
@fastly/style-guide
have nobranches
, especially given theeyeglass:modules
step found the tree?The text was updated successfully, but these errors were encountered: