react-week-scheduler icon indicating copy to clipboard operation
react-week-scheduler copied to clipboard

Import errors

Open Dodgo1 opened this issue 3 years ago • 1 comments

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.

Dodgo1 avatar Jan 08 '23 12:01 Dodgo1

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

capfsb avatar Mar 02 '23 19:03 capfsb