'Can't resolve '@blueprintjs/core/dist/blueprint.css'?

I have imported

import '@blueprintjs/core/dist/blueprint.css';

but it gives an error like below

./src/index.js
Module not found: Can't resolve '@blueprintjs/core/dist/blueprint.css' in 'D:\REACT\react-firebase\src'

its true its not in project src its in mode modules package

why this happen how can I fix this



Solution 1:[1]

Use

import '@blueprintjs/core/lib/css/blueprint.css';

Instead of

import '@blueprintjs/core/dist/blueprint.css';

Solution 2:[2]

I had this problem while trying to use the react-mosaic-component package. I had to install blueprintjs core & icons like so:

npm install @blueprintjs/core @blueprintjs/icons

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 WhatsThePoint
Solution 2 Travis Heeter