webpack require fails. npm module doesn't to contain `dist`
kizzlebot opened this issue · comments
I installed this using npm
and tried to use require('react-timesheet')
in the index.js
entry point to webpack
and it gave me a SyntaxError
. The files installed by calling npm install react-timesheet
doesn't install the folder node_modules/react-timesheet/dist
which contains the compiled js file specified for main
key in package.json
as this link specifies. Instead main
points to a js file which contains jsx.
+1