Reputation: 1099
I currently have a file that only imports React, and Conversation from react-conversation-form:
import React from 'react';
import Conversation from 'react-conversation-form';
My package.json looks like this:
{
"dependencies": {
"@rails/webpacker": "^3.2.2",
"babel-preset-react": "^6.24.1",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-conversation-form": "^2.0.1",
"react-dom": "^16.2.0"
},
"devDependencies": {
"babel-core": "^6.26.0",
"webpack-dev-server": "^2.11.2"
}
}
Despite this, I am getting a Cannot find module "react-conversation-form"
error. Is there a way to debug this?
Upvotes: 1
Views: 3461
Reputation: 1201
You can do the following : yarn cache clean
and then perform : yarn install
Upvotes: 1
Reputation: 2500
Looks fine. Is it possible that you've missed to execute "npm install" or it failed at some reason?
Upvotes: 0