After upgrading Next.js to version 12 Bootstrap with SCSS isn't working anymore.
I have a global.scss file which gets imported in the _app.js. In this file I import Bootstrap and Bootstrap Icons.
@import '~bootstrap/scss/bootstrap.scss';
@import '~bootstrap-icons/font/bootstrap-icons.css';
It worked perfectly, but not after upgrading to Next.js 12. Now I get an import error and I don't know how to resolve it.
./styles/global.scss:5:0
Module not found: Can't resolve '../node_modules/bootstrap/scss/forms/data:image/svg+xml,<svg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke=''
Import trace for requested module:
./styles/global.scss
./pages/_app.jsx
https://nextjs.org/docs/messages/module-not-found