-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Loading Blueprint 5 in nextjs/typescript #6153
Comments
@switz thanks for giving v5 a try. I have noticed some issues loading v5 icons with some build systems, for example with Vite: #6151 I will try to repro your |
Here's a reproduction: https://codesandbox.io/p/sandbox/condescending-cherry-zd9t8l?file=%2Fapp%2Fpage.tsx%3A9%2C1
Here's a reproduction of it "working" with nextjs: https://codesandbox.io/p/sandbox/objective-paper-qb8y0h?file=%2Fapp%2Fpage.tsx%3A1%2C1 You can see Let me know if I can provide more. |
@switz is this still a problem with the latest v5.0.0-beta releases? |
I was able to get Blueprint v5 icons working with Next.js 13 and React 18, you can see a demo Stackblitz here: https://stackblitz.com/edit/blueprint-v5-react-18-nextjs Going to close this out as fixed, but let me know if you continue to experience issues. |
Environment
next
(as of may 13th)next
Question
When I try to load blueprint 5 into my app, I get the following errors:
It seems like it's trying to load the
cjs
files even though my app istype: "module"
(ESM modules), and on top of that it's loading the.d.ts
files via webpack - that seems wrong.I'm running nextjs and calling my icons dynamically (
<Icon name="download" />
). I read through all the new docs. Any direction here?The text was updated successfully, but these errors were encountered: