-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@svgr/webpack v6.1 - fails due to a duplicate default
export
#645
Closed
ghost opened this issue
Dec 2, 2021
· 2 comments
· Fixed by #648 · May be fixed by GabrielNathan12/to-do-list-agent#49
Closed
@svgr/webpack v6.1 - fails due to a duplicate default
export
#645
ghost opened this issue
Dec 2, 2021
· 2 comments
· Fixed by #648 · May be fixed by GabrielNathan12/to-do-list-agent#49
Comments
Hey @danr-za 👋, |
Have the same issue even if I downgrade the version to export default function (source) {
// Apply some transformations to the source...
return source.replace(/export default .*\n/, '');
} webpack.config.js use: [
{
loader: path.resolve(__dirname, './removeDuplicateExportLoader'),
},
{
loader: require.resolve('@svgr/webpack'),
options: {
titleProp: true,
// typescript: true,
exportType: 'named',
svgo: false,
},
},
{
loader: 'file-loader',
options: {
name: 'images/[hash].[ext]',
},
},
], |
gregberge
added a commit
that referenced
this issue
Dec 4, 2021
gregberge
added a commit
that referenced
this issue
Dec 4, 2021
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
Build fails with
svgr/webpack & url-loader
due to:To Reproduce
Steps to reproduce the behavior:
@svgr/webpack@6.1
Webpack loaders:
Expected behavior
Should not error, just as previous versions - works as expected on 6.0.0
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: