Home:ALL Converter>Where is the location for sweetalert2?

Where is the location for sweetalert2?

Ask Time:2020-10-21T07:19:01         Author:Marcello M.

Json Formatter

I am having a hard time installing the swwetalert2 package.

npm i sweetalert2 - its fine. the package is inside node_modules.

inside my app.css i tried different variation of the @import

@import '/sweetalert2';

@import '~sweetalert2';
@import 'sweetalert2/dist'; 

but every time I run npm run dev or production I get this:

ERROR in ./resources/css/app.css Module build failed (from ./node_modules/css-loader/index.js): ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find 'sweetalert2'

no matter the variation I use for the location.

Author:Marcello M.,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64454594/where-is-the-location-for-sweetalert2
yy