Incorrect paths for @blueprintjs source maps that produce multiple warnings on project compilation
See original GitHub issueEnvironment
- 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
npm install --save @blueprintjs/core @blueprintjs/datetime
cd node_modules/@blueprintjs/datetime/lib/css/
- Check path in
blueprint-datetime.css.map
for_variables.scss
- 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:
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:
- Created 4 years ago
- Reactions:4
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Experiencing same issue using parcel@1.12.4
I just encountered the same issue using Parcel.
Any update on this? Any workaround?