Community forum for knowledge and support

Updated last month

Navigating NavBar3 Component Import Issues in Next.js

At a glance

The community member is facing an issue with the NavBar3 component (and other snippets) from the Relume team, as they use named exports (export const Navbar3 = ...) while the community member typically imports components as default in Next.js. The community member is asking whether they should alter the Relume snippets to use export default, or if they should adjust their import statements to use named exports. The community member is trying to keep changes to the Relume code minimal.

Hey Relume team, I’m running into an issue with the NavBar3 component (and other snippets) because they use named exports (export const Navbar3 = ...), while I typically import components as default in Next.js. Do you recommend altering your snippets to export default, or should I just adjust my import statements to use named exports? Thanks for any guidance—trying to keep changes to your code minimal!

Add a reply
Sign up and join the conversation on Slack