Describe the bug
I am using the package and my app is built on Next js. When I try to build, I am getting the below error.
`./node_modules/bulma/css/bulma.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js
./node_modules/bulma-helpers/css/bulma-helpers.min.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js
./node_modules/bulma/css/bulma.css
Module build failed: Error: Final loader (./node_modules/next/dist/build/webpack/loaders/error-loader.js) didn't return a Buffer or String
./node_modules/bulma-helpers/css/bulma-helpers.min.css
Module build failed: Error: Final loader (./node_modules/next/dist/build/webpack/loaders/error-loader.js) didn't return a Buffer or String
./node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js
Module not found: Can't resolve 'material-design-icons/iconfont/material-icons.css' in '/home/ubuntu/frontend/node_modules/pdf-viewer-reactjs/dist'
`
Describe the bug I am using the package and my app is built on Next js. When I try to build, I am getting the below error.
`./node_modules/bulma/css/bulma.css Global CSS cannot be imported from within node_modules. Read more: https://err.sh/next.js/css-npm Location: node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js
./node_modules/bulma-helpers/css/bulma-helpers.min.css Global CSS cannot be imported from within node_modules. Read more: https://err.sh/next.js/css-npm Location: node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js
./node_modules/bulma/css/bulma.css Module build failed: Error: Final loader (./node_modules/next/dist/build/webpack/loaders/error-loader.js) didn't return a Buffer or String
./node_modules/bulma-helpers/css/bulma-helpers.min.css Module build failed: Error: Final loader (./node_modules/next/dist/build/webpack/loaders/error-loader.js) didn't return a Buffer or String
./node_modules/pdf-viewer-reactjs/dist/pdf-viewer-reactjs.js Module not found: Can't resolve 'material-design-icons/iconfont/material-icons.css' in '/home/ubuntu/frontend/node_modules/pdf-viewer-reactjs/dist' `
Details :
Additional context Solution from next js : https://github.com/vercel/next.js/blob/master/errors/css-npm.md