If possible, link to a minimal repro: https://github.com/newtriks/bp_example
npm install --save @blueprintjs/core @blueprintjs/datetimecd node_modules/@blueprintjs/datetime/lib/css/blueprint-datetime.css.map for _variables.scss_variables.scss e.g. ls ../../../../node_modules/@blueprintjs/core/src/common/Output: ls: ../../../../node_modules/@blueprintjs/core/src/common/: No such file or directory
This was discovered by all the warnings on compilation of the project:

Outputs files in the common directory e.g. the source map points to the correct file
Step up another directory e.g. ls ../../../../../node_modules/@blueprintjs/core/src/common/
Output:
_color-aliases.scss alignment.ts intent.ts
_colors.scss boundary.ts interactionMode.ts
_flex.scss classes.ts keys.ts
_mixins.scss colors.ts position.ts
_react-transition.scss constructor.ts props.ts
_variables.scss elevation.ts utils
abstractComponent.ts errors.ts utils.ts
abstractPureComponent.ts index.ts
Seems the same as this closed issue: https://github.com/palantir/blueprint/issues/2728
I did some research on this, and this behavior is caused by the monorepo structure of the blueprint repository.
I was unable to find a straightforward solution to fix this. One solution is to "patch" the blueprintjs.css.map file to replace the entries referencing the wrong node_modules location, but this may be "hacky", if another solution exists.
One could create a pre-release-script f. eks that would transform (showing only the entries at fault):
{
"version": 3,
"sources": [
"../../../../node_modules/@blueprintjs/icons/src/_icons.scss",
"../../../../node_modules/@blueprintjs/icons/src/generated/_icon-variables.scss",
"../../../../node_modules/@blueprintjs/core/src/common/_react-transition.scss",
],
"names": [],
"file": "blueprint.css"
}
into
{
"version": 3,
"sources": [
"../../../../../node_modules/@blueprintjs/icons/src/_icons.scss",
"../../../../../node_modules/@blueprintjs/icons/src/generated/_icon-variables.scss",
"../../../../node_modules/@blueprintjs/core/src/common/_react-transition.scss",
],
"names": [],
"file": "blueprint.css"
}
If this would be an acceptable solution, I would be happy to put in the time to implement it.
I just encountered the same issue using Parcel.
Any update on this? Any workaround?
Experiencing same issue using [email protected]
Most helpful comment
Experiencing same issue using [email protected]