Styled BlueprintJS: Duplicate plugin/preset detected. #719
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
Description
Hi 👋 I'm fairly new to Linaria, but have used quite a few styled components libraries in the past, and what I want to achieve is the following:
I'd like to override BlueprintJS components using the
styled
function from@linaria/react
as a cleaner way to override their style. I tried the following:I'm not entirely sure whether this will work or not given that (from the docs)
You can use the styled(..) tag to style any component as long as they accept a className and a style prop
. But here I'm actually getting a bundler issue:Webpack wise I followed the docs, and the setup is fairly basic:
I even tried to remove any plugins for the linaria loader:
But the error still occurs.
Has anyone faced a similar issue? Or maybe due to the way blueprintjs bundles its components, this is simply not possible? Any hint to guide us to a solution would be really helpful.
Thank you in advance!
The text was updated successfully, but these errors were encountered: