Skip to content
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

Module not found: Can't resolve package in cheerio. #26

Closed
NullVoxPopuli opened this issue Apr 29, 2017 · 1 comment
Closed

Module not found: Can't resolve package in cheerio. #26

NullVoxPopuli opened this issue Apr 29, 2017 · 1 comment

Comments

@NullVoxPopuli
Copy link

Here is the full error:

web_1         | ERROR in ./~/cheerio/index.js
web_1         | Module not found: Error: Can't resolve './package' in '/src/app/node_modules/cheerio'
web_1         |  @ ./~/cheerio/index.js 11:18-38
web_1         |  @ ./~/metascraper/dist/index.js

trying to build with webpack.

@NullVoxPopuli
Copy link
Author

turns out I just needed:

    alias: {
      ...
      cheerio: 'cheerio/lib/cheerio'
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant