question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with this library

See original GitHub issue

Getting this error now: SyntaxError: Unexpected token ‘export’ With the following codes that i follow in https://github.com/themesberg/flowbite-react.

// tailwind.config.js
module.exports = {
    content: [
        "./src/**/*.{html,js,svelte,ts}",
        "./pages/**/*.{js,ts,jsx,tsx}",
        "./components/**/*.{js,ts,jsx,tsx}",
    ],
    theme: {
        extend: {},
    },
    plugins: [require('flowbite/plugin')],
}
// app.js
import Modal from "flowbite/src/components/modal";

const MyApp = ({Component, pageProps}) => {
    return (
        <>
            <Modal>
            </Modal>
        </>
    );
}

export default MyApp

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
xiaolin911211commented, May 26, 2022

Thank you so much, is working for me

Hey @xiaolin911211, I just created a Next.js starter app that you can use as a baseline for your app: https://github.com/tulup-conner/flowbite-next-starter All of the components work, save Breadcrumb. I found a bug with that that is not Next.js related - should be fixed soon.

Thanks for this @tulup-conner. Maybe we should add this example to examples folder in the repository. Did you get the DarkThemeToggle working as well?

1reaction
rowlandekemeziecommented, May 25, 2022

Hey @xiaolin911211, I just created a Next.js starter app that you can use as a baseline for your app: https://github.com/tulup-conner/flowbite-next-starter

All of the components work, save Breadcrumb. I found a bug with that that is not Next.js related - should be fixed soon.

Thanks for this @tulup-conner. Maybe we should add this example to examples folder in the repository. Did you get the DarkThemeToggle working as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Library Issues - Academic Librarianship Blog
Library Issues highlights key issues in academic librarianship. Its intended audience is faculty and academic administrators and librarians who work with ...
Read more >
What is the meaning of 'to issue a book from library'? Does this ...
The member of library staff is the person who is able “to issue a book from a/the library” when you want to borrow/take...
Read more >
Issues and Trends | News and Press Center
Challenges to library materials and programs addressing issues of concern to those in the lesbian, gay, bisexual, transgender, queer and/or questioning, ...
Read more >
Global Issues Library | Alexander Street
Global Issues Library reflects the key issues affecting our world today, including border issues, migrations, atrocities and human rights violations, ...
Read more >
The Library Pulse - Current Issues for Illinois Libraries | RAILS
In The Library Pulse, RAILS helps members stay current on the latest issues/challenges affecting all sizes and types of libraries.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found