bourbon
bourbon copied to clipboard
can't resolve`bourbon`
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
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?
Demo repo https://github.com/FDiskas/parcel-bug