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

Import errors #69

Open
Dodgo1 opened this issue Jan 8, 2023 · 1 comment
Open

Import errors #69

Dodgo1 opened this issue Jan 8, 2023 · 1 comment

Comments

@Dodgo1
Copy link

Dodgo1 commented Jan 8, 2023

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
Copy link

capfsb commented Mar 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants