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

Unexpected key 'input' found #27

Closed
FezVrasta opened this issue Aug 24, 2017 · 2 comments
Closed

Unexpected key 'input' found #27

FezVrasta opened this issue Aug 24, 2017 · 2 comments

Comments

@FezVrasta
Copy link
Contributor

24 08 2017 20:41:26.839:ERROR [preprocessor.rollup]: Error processing “tests/unit/findIndex.js”

Unexpected key 'input' found, expected one of: acorn, amd, banner, cache, context, dest, entry, exports, external, footer, format,globals, indent, interop, intro, legacy, moduleContext, moduleName, noConflict, onwarn, outro, paths, plugins, preferConst, pureExternalModules, sourceMap, sourceMapFile, targets, treeshake, useStrict, watch

I get this after I updated to 5.x.x

@jlmakes
Copy link
Owner

jlmakes commented Aug 24, 2017

Looks like you don’t have Rollup 0.48 (or higher) installed.

That error message is straight from Rollup, when an invalid key is found in the options object. Very recently the rollup options changed, and input is actually a part of the new structure.

Because this is another breaking change from Rollup…

  • karma-rollup-preprocessor@5.0.0 now requires rollup@0.48 (or higher)
  • rollup has been made a peer dependency. (So it’s up to you to install it.)

You should try re-installing your node modules, and also install the latest version of Rollup (since the preprocessor no longer does this for you).

@jlmakes jlmakes closed this as completed Aug 24, 2017
@FezVrasta
Copy link
Contributor Author

thanks it works!

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

No branches or pull requests

2 participants