bourbon icon indicating copy to clipboard operation
bourbon copied to clipboard

can't resolve`bourbon`

Open FDiskas opened this issue 5 years ago • 2 comments

Some bundlers like parcel can't resolvebourbon when included in scss because of the main entry in package.json file. Please change the main entry point to same path as it is in style = "core/_bourbon.scss", :notes:

No result in scss looks like

@import 'normalize.css';
@import '~node_modules/bourbon/core/bourbon';

but could be like

@import 'normalize.css';
@import 'bourbon';

Originally posted by @FDiskas in https://github.com/thoughtbot/bourbon/issues/802#issuecomment-510624302 Reference: https://github.com/parcel-bundler/parcel/issues/3205

FDiskas avatar Jul 11 '19 19:07 FDiskas

I’ve not used Parcel extensively, but from what I gather it’s a bundler that wraps other tools and Parcel itself is not responsible for the compiling of Sass. According to their SCSS documentation, it appears that you can use Parcel with Dart Sass (the sass package on npm) or node-sass (the node-sass on package npm). Can you clarify which one you are using?

Also, have you tried using eyeglass and following our instructions in the readme for Installing with npm and using a Node-based asset pipeline?

tysongach avatar Oct 25 '19 15:10 tysongach

Demo repo https://github.com/FDiskas/parcel-bug

FDiskas avatar Oct 25 '19 16:10 FDiskas