Source:  Twitter logo

I'm using "moment": "^2.29.1", "moment-range": "^4.0.2", to get the range between two dates.

Vite with Vue3 and typescript.

Locally, eveything works fine. But when deploying to Netlify I get the following error:

Cannot add property range, object is not extensible at Object.o [as extendMoment]

Importing moment:

import * as moment from "moment";
import { extendMoment } from "moment-range";

const Moment = extendMoment(moment);

Copyright © 2022 QueryThreads

All content on Query Threads is licensed under the Creative Commons Attribution-ShareAlike 3.0 license (CC BY-SA 3.0).