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 'moduleId' found #379

Closed
kobezzza opened this issue Dec 29, 2015 · 5 comments
Closed

Unexpected key 'moduleId' found #379

kobezzza opened this issue Dec 29, 2015 · 5 comments
Assignees

Comments

@kobezzza
Copy link

Unexpected key 'moduleId' found, expected one of: entry, dest, plugins, external, onwarn, indent, format, moduleName, sourceMap, intro, outro, banner, footer, globals, transform, load, resolveId, resolveExternal
@TrySound
Copy link
Member

@kobezzza Show config code, input code

@kobezzza
Copy link
Author

'use strict';

export function foo() {

}
rollup ./src/index.js --id Snakeskin --name Snakeskin --format umd
Unexpected key 'moduleId' found, expected one of: entry, dest, plugins, external, onwarn, indent, format, moduleName, sourceMap, intro, outro, banner, footer, globals, transform, load, resolveId, resolveExternal
Error: Unexpected key 'moduleId' found, expected one of: entry, dest, plugins, external, onwarn, indent, format, moduleName, sourceMap, intro, outro, banner, footer, globals, transform, load, resolveId, resolveExternal
    at validateKeys (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/www/ROLLUP/rollup/src/utils/validateKeys.js:12:11)
    at Object.rollup (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/www/ROLLUP/rollup/src/rollup.js:41:16)
    at bundle (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/bin/runRollup.js:114:16)
    at execute (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/bin/runRollup.js:103:3)
    at module.exports (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/bin/runRollup.js:58:3)
    at Object.<anonymous> (/Users/andrejkobec/.nvm/versions/node/v5.3.0/lib/node_modules/rollup/bin/rollup:36:26)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)

@Victorystick
Copy link
Contributor

moduleId is a valid key, but it isn't included in the check added by 934d1e1.

@kobezzza
Copy link
Author

With Rollup 0.20 all fine.

@Victorystick Victorystick self-assigned this Dec 29, 2015
Rich-Harris added a commit that referenced this issue Dec 29, 2015
@Rich-Harris
Copy link
Contributor

Fix released as 0.22.1.

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

4 participants