gulp-bem / gulp-bem-xjst

DEPRECATED repository, moved to https://github.com/bem/gulp-bem/tree/master/packages/gulp-bem-xjst
MIT License
6 stars 3 forks source link

Error: Wrong .match() argument #1

Closed voischev closed 8 years ago

voischev commented 8 years ago

В собранном бандле для bemhtml или bemtree одна и та же ошибка.

node -p "require('./build/bundles/index/index.bemhtml.js').apply({});"
/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:1869
    throw new Error(msg || 'Assertion failed');
    ^

Error: Wrong .match() argument
    at assert (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:1869:11)
    at Tree.match (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:1654:5)
    at Object.<anonymous> (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:2181:1)
    at Tree.build (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:1558:13)
    at BEMHTML.compile (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:719:18)
    at Object.<anonymous> (/Users/voischev/projects/bem-full-stack/build/bundles/index/index.bemhtml.js:1890:5)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)

Можно попробовать на проекте в этой ветке https://github.com/voischev/bem-full-stack/tree/gulp Коммит 34921dd5a57f8c7f5921b6b0a2ef8942d302a96b

voischev commented 8 years ago

слева сборка из enb, "enb-bemxjst": "^4.1.0", справа из gulp "gulp-bem-xjst": "^1.0.0",

Наблюдаю обетрочку слева...

screen shot 2016-03-01 at 15 20 54
qfox commented 8 years ago

Нужно отфильтровать i-bem.bemhtml.js из bem-core https://github.com/bem/project-stub/blob/feature/gulp/gulpfile.js#L50-L55

qfox commented 8 years ago

Закрываю, потому что проблема не в пакете и не может быть решена здесь.

voischev commented 8 years ago

:+1: