-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot find module 'package.json' #1
Comments
Thank you for your report. That's weird, I just tried to bundle this module ( |
If you can't share your configuration, feel free to look at this repository to reproduce the problem: https://github.com/mjeanroy/test-rollup-plugin-license |
FWIW, I'm running into this as well, on https://github.com/dropbox/dropbox-sdk-js/tree/license. I tried pasting my package.json and rollup.config.js into your test, which just generates an empty dependencies.txt for me.
|
Same error occurred for me, I resolved it by re-ordering my rollup plugins. |
@Havunen it would be nice if you could tell what you did... Move The plugin license up or down ? After which other plugin ? Cheers |
OK, I got it. The bug was caused by the leading NULL I've locally fixed the issue, and I'll try to find the time to do a proper PR. Cheers! |
Thank you very much @GerkinDev for your report. I'm waiting for your PR, but if you don't have enough time, I can fix it myself. |
…s-directory Check that license file is actually a file
This plugin chokes on imports like this one:
typescript-collections
has a package.json, of course.The text was updated successfully, but these errors were encountered: