Skip to content
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

Dependabot update fails for webiste with flowbite-react import error #1535

Closed
corneliusroemer opened this issue Apr 2, 2024 · 3 comments
Closed
Labels
website Tasks related to the web application

Comments

@corneliusroemer
Copy link
Contributor

Current dependabot website PR #1528 fails due to flowbite-react import error:

07:47:55 [@astrojs/node] Server listening on http://localhost:3000
07:48:01 [ERROR] file:///app/dist/server/chunks/pages/index_xBUQ-xOB.mjs:26
import { Datepicker } from 'flowbite-react';
         ^^^^^^^^^^
SyntaxError: Named export 'Datepicker' not found. The requested module 'flowbite-react' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'flowbite-react';
const { Datepicker } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async NodeApp.render (file:///app/dist/server/entry.mjs:1240:45)
    at async file:///app/dist/server/entry.mjs:1590:24

I've tried using the suggested import but that doesn't work either. This might be an astro bug. Let's see.

In CI this shows as "website" not ready for E2E: https://github.com/loculus-project/loculus/actions/runs/8512427256/job/23320194666?pr=1528#step:19:361

Might be cool to print logs in CI when timeout is reached and something is still not ready.

@corneliusroemer corneliusroemer added the website Tasks related to the web application label Apr 2, 2024
@corneliusroemer
Copy link
Contributor Author

I noticed @theosanderson made some changes to flowbite-react imports in tailwind config that might help with this - or might just be coincidental. I tried adding node_modules/.../flowbite but it didn't help.

@corneliusroemer
Copy link
Contributor Author

Upstream bug, fixed by excluding flowbite-react 0.7.6-0.7.8

@chaoran-chen
Copy link
Member

We now use flowbite-react 0.8.0, so this is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website Tasks related to the web application
Projects
None yet
Development

No branches or pull requests

2 participants