zilverline / react-tap-event-plugin

Instant TapEvents for React
http://facebook.github.io/react/
MIT License
1.07k stars 110 forks source link

"Module not found" while deploying to heroku using CRA + heroku buildpack #105

Closed dlchung closed 7 years ago

dlchung commented 7 years ago

When I try to deploy to heroku I am getting this error:

Module not found: Error: Can't resolve 'react-tap-event-plugin' in '/tmp/build_5fcfd3c359f7a770ba414883585e63bb/src/components'

I have it imported and initialized correctly in my index.js. I have no issues when running "npm run build".

import injectTapEventPlugin from 'react-tap-event-plugin';

// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();

versions: node 6.11.1 npm 5.3.0 react 15.6.1 react-tap-event-plugin 2.0.1

Any idea what the problem is?

dlchung commented 7 years ago

I was able to fix this issue by committing to my repo again.