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

Error: Can't resolve 'timepicker/jquery.timepicker.css' #719

Closed
mas-iota opened this issue May 4, 2020 · 3 comments
Closed

Error: Can't resolve 'timepicker/jquery.timepicker.css' #719

mas-iota opened this issue May 4, 2020 · 3 comments

Comments

@mas-iota
Copy link

mas-iota commented May 4, 2020

This is happening after re-installing node_modules.
The version specified in package.json is: ^1.11.12

And this is how we import:

import 'timepicker';
import 'timepicker/jquery.timepicker.css';

Now omitting the caret^ from the version will force install 1.11.12 and solves the problem.
Isn't the newly installed version should be backward compatible with 1.11.12?

@devagrawal09
Copy link

Looks like its not. You have to import from /dist to import the built files.

@jonthornton
Copy link
Owner

That's correct, @mas-iota you'll need to update the import statement to import 'timepicker/dist/jquery.timepicker.css';. Apologies for this breaking change! The source code structure changed a lot recently, but the plugin API should be unchanged aside from import structure.

@jonthornton
Copy link
Owner

After sleeping on it I realized this could be fixed by changing where the build output goes, which should preserve backwards compatibility.

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

3 participants