## ๐ Bug Report `@svgr/webpack` does not work with `next 13.4.19`. It generates error message: ``` ./public/next.svg Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" ``` ## To Reproduce Run the basic project creation: `npx create-next-app@latest`. Run `npm install --save-dev @svgr/webpack` Update `next.config.js` per https://react-svgr.com/docs/next/ In the file `src/app/page.tsx` replace the next.svg reference with `import Logo from '../../public/next.svg';` and `<Logo />` ## Expected behavior Expect the image to work. ## Run `npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard` Paste the results here: ```bash ## System: - OS: macOS 13.4.1 - CPU: (10) arm64 Apple M1 Max - Memory: 981.70 MB / 32.00 GB - Shell: 5.9 - /bin/zsh ## Binaries: - Node: 20.4.0 - /opt/homebrew/bin/node - npm: 9.7.2 - /opt/homebrew/bin/npm ## npmPackages: - @svgr/webpack: ^8.1.0 => 8.1.0 ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by jarimustonen and has received 14 comments.