blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

Source map warnings in Create-React-App 5

Open LoiKos opened this issue 2 years ago • 1 comments

Environment

  • Package version(s): "@blueprintjs/core": "^4.2.1", "@blueprintjs/datetime": "^4.1.4", "@blueprintjs/popover2": "^1.1.4", "@blueprintjs/select": "^4.1.4",

  • Operating System: Mac OS Monterey 12.2.1

  • Browser name and version: Chrome Version 100.0.4896.127 (Build officiel) (x86_64)

Code Sandbox

https://codesandbox.io/s/romantic-swirles-f6w5g9

The issue is not visible in CodeSandbox console but you can find source map errors in browser console. May need to play with console options as css warnings can be hidden.

Steps to reproduce

  1. Create a react app with CRA in version 5
  2. Install blueprintjs and import them e.g :
    import '@blueprintjs/core/lib/css/blueprint.css'
    import '@blueprintjs/icons/lib/css/blueprint-icons.css'
    import '@blueprintjs/datetime/lib/css/blueprint-datetime.css'
    import '@blueprintjs/select/lib/css/blueprint-select.css'
    import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'
    
  3. Start the app

Actual behavior

Capture d’écran 2022-04-27 à 19 04 01

Expected behavior

No source map errors

LoiKos avatar Apr 27 '22 17:04 LoiKos

I find these two issues related but i still have the problem :

https://github.com/palantir/blueprint/issues/5111

https://github.com/palantir/blueprint/issues/3500

LoiKos avatar Apr 27 '22 17:04 LoiKos

@LoiKos is this still a problem in recent versions of Blueprint?

adidahiya avatar May 12 '23 16:05 adidahiya

@adidahiya this is fine now. My bad i should have close this issue !

LoiKos avatar May 12 '23 16:05 LoiKos