question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect paths for @blueprintjs source maps that produce multiple warnings on project compilation

See original GitHub issue

Environment

  • Package version(s): @blueprintjs/core@3.15.1
  • Browser and OS versions: Chrome 73.0.3683.86, OS X 10.14.4

If possible, link to a minimal repro: https://github.com/newtriks/bp_example

Steps to reproduce

  1. npm install --save @blueprintjs/core @blueprintjs/datetime
  2. cd node_modules/@blueprintjs/datetime/lib/css/
  3. Check path in blueprint-datetime.css.map for _variables.scss
  4. Using path list dir for _variables.scss e.g. ls ../../../../node_modules/@blueprintjs/core/src/common/

Actual behavior

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:

Screenshot 2019-04-26 at 14 07 43

Expected behavior

Outputs files in the common directory e.g. the source map points to the correct file

Possible solution

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

3reactions
0xhjohnsoncommented, Feb 26, 2020

Experiencing same issue using parcel@1.12.4

3reactions
MaximeBernardcommented, Feb 26, 2020

I just encountered the same issue using Parcel.

Any update on this? Any workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack 2.7 won't load blueprintjs core css - Stack Overflow
Try using the full path to blueprint.css inside the NPM package. The webpack error in the screenshot clearly shows the css-loader trying to ......
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
Missing or incorrect source map directive. We're going to presume that you've already produced a source map using a tool like UglifyJS or ......
Read more >
Blueprint – Documentation
@blueprintjs/core is the primary Blueprint library package, home to over 40 UI components. Install it with your Node.js package manager of choice (Yarn...
Read more >
VS Code | Build, Run and Debug in C++ - GeeksforGeeks
Firstly create a file launch.json that configures the VS Code to launch the GDB debugger at the beginning of the debugging process. Then...
Read more >
目录 - Gitee
#3691 fix: support create-react-app environment variable for Blueprint namespace ... #2710 Fixed Sass compilation so source map remains external (major ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found