1

I am learning webpack-loader, and using csv-loader to load a csv file. I have already install the csv-loader and add the rule. However, webpack log an

error: Cannot find module 'papaparse'.

How do this error happened?

Matthijs
  • 2,483
  • 5
  • 22
  • 33
Loris Lo
  • 11
  • 2

1 Answers1

3

Indeed, it looks like papaparse is declared as a dependency within csv-loader which does not install by default after npm 3. You can just install it yourself using the following:

npm install --save-dev papaparse
Brady Dowling
  • 4,920
  • 3
  • 32
  • 62