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

Cannot read property 'libs' of undefined #1

Open
ilyar opened this issue Jul 31, 2016 · 0 comments
Open

Cannot read property 'libs' of undefined #1

ilyar opened this issue Jul 31, 2016 · 0 comments

Comments

@ilyar
Copy link

ilyar commented Jul 31, 2016

npm i -g bem-lib-site
mkdir docstest && cd $_
echo "module.exports = {
    modules: {
        'bem-tools': {
            plugins: {}
        },
        'bem-lib-site-data': {
            tempFolder: 'tmp',
            outputFolder: 'output',
            langs: ['ru', 'en'],
            platforms: { // TODO: make it really optional
                'desktop': ['common', 'deskpad', 'desktop'],
                'touch-phone': ['common', 'touch', 'touch-phone'],
                'touch-pad': ['common', 'deskpad', 'touch', 'touch-pad']
            },
            libs: {
                'bem-components': {
                    langs: ['ru', 'en'],
                    github: {
                        url: 'github.com',
                        user: 'bem',
                        repo: 'bem-components',
                        defaultBranch: 'v3'
                    }
                }
            }
        }
    }
};" | tee .bemrc

bem-lib-site .
TypeError: Cannot read property 'libs' of undefined
    at Object.<anonymous> (/home/ilyar/.nvm/versions/node/v5.5.0/lib/node_modules/bem-lib-site/node_modules/bem-lib-site-data/.enb/make.js:15:21)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at module.exports.inherit.init (/home/ilyar/.nvm/versions/node/v5.5.0/lib/node_modules/bem-lib-site/node_modules/enb/lib/make.js:90:17)
    at module.exports (/home/ilyar/.nvm/versions/node/v5.5.0/lib/node_modules/bem-lib-site/node_modules/enb-magic-platform/lib/apply.js:25:25)
    at Object.module.exports [as runTasks] (/home/ilyar/.nvm/versions/node/v5.5.0/lib/node_modules/bem-lib-site/node_modules/enb-magic-platform/lib/api/run-tasks.js:28:12)

bem-site/bem-forum-content-ru#1083 (comment)

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