remotelock / react-week-scheduler

A time grid component for React with scheduling capabilities.
https://remotelock.github.io/react-week-scheduler
MIT License
139 stars 58 forks source link

Import errors #69

Open Dodgo1 opened 1 year ago

Dodgo1 commented 1 year ago

A lot of import errors are appearing (23 to be axact):

ERROR in ./node_modules/@remotelock/react-week-scheduler/index.mjs 34:0-45 Module not found: Error: Can't resolve 'date-fns/is_same_day' in '/mnt/c/Users/.../scheduler-manager/myapp/node_modules/@remotelock/react-week-scheduler' Did you mean 'index.js'? BREAKING CHANGE: The request 'date-fns/is_same_day' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.

capfsb commented 1 year ago

I solve this with import { classes, TimeGridScheduler } from '@remotelock/react-week-scheduler/index.js';