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

Fix build (dayjs import) for tests and production #1

Closed
chaoran-chen opened this issue Jan 3, 2024 · 0 comments · Fixed by #12
Closed

Fix build (dayjs import) for tests and production #1

chaoran-chen opened this issue Jan 3, 2024 · 0 comments · Fixed by #12
Labels
bug Something isn't working components Regarding the components

Comments

@chaoran-chen
Copy link
Member

chaoran-chen commented Jan 3, 2024

If we run

npm run build
npm run test

we get the error

TypeError: dayjs.extend is not a function

Similarly, we get an error if we build the storybook with

npm run build
npm run build-storybook

Opening the prevalence over time plot, we get:

image

However, the local development instance of storybook works:

npm run build
npm run storybook
@chaoran-chen chaoran-chen added bug Something isn't working components Regarding the components labels Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working components Regarding the components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant