-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
react-clock/dist/Clock.css could not be found within the project or in these directories: node_modules #125
Comments
What are you using to bundle your app? Can you share the config? |
The same issue happened to us in the (private) component library running Styleguidist (on Webpack). module.exports = {
module: {
rules: [
// ...
{
test: /\.css$/,
include: [
// ...
path.resolve(__dirname, 'node_modules/react-clock'),
// ...
],
// ...
},
},
},
}, |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
I am trying to add a TimePicker to my app and all I did was follow these three steps:
The code crashes (on Android and iOS) at the "import TimePicker from 'react-time-picker'" with the error message:
error: Error: Unable to resolve module react-clock/dist/Clock.css from ./node_modules/react-time-picker/dist/entry.js: react-clock/dist/Clock.css could not be found within the project or in these directories:
node_modules
I checked and both of the files entry.js and Clock.css are in the correct places: node_modules/react-time-picker/dist/entry.js and node_modules/react-clock/dist/Clock.css
What could be causing this error??
The text was updated successfully, but these errors were encountered: