Code Monkey home page Code Monkey logo

Comments (2)

zang3tsu88 avatar zang3tsu88 commented on August 13, 2024

Добрый вечер!
Тоже начал учиться в Яндекс Практикуме, нашел Ваше творение! Спасибо! С первым проектом Kaufman сработало отлично, а на Путешествиях по России, при запуске npm run start выдало ошибку.

$ npm run start

> [email protected] start
> css-to-bem-file-structure ./pages/index.css

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

AssertionError [ERR_ASSERTION]: Required `entity` field
    at new BemCell (D:\Documents\practicum\projects\russian-travels\node_modules\@bem\cell\index.js:18:9)
    at D:\Documents\practicum\projects\russian-travels\node_modules\bem-tools-create\lib\create.js:102:41
    at Array.map (<anonymous>)
    at D:\Documents\practicum\projects\russian-travels\node_modules\bem-tools-create\lib\create.js:100:61
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async Promise.all (index 0) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: true,
  operator: '=='
}

Node.js v18.12.0

Конкретно на селекторы не тестировал, но псевдо классы или элементы есть в обоих проектах, keyframes есть в первом(правда не помню если они были прописаны в стилях на момент запуска скрипта...
Оба проекта есть в моем репо если что. how-to-learn and russian-travels.

from bem-tools-create-by-css.

tadatuta avatar tadatuta commented on August 13, 2024

Спасибо за репорты!

Псевдо и прочие сложные селекторы починил в версии 0.0.4.
А с keyframes (как и с переменными, объявленными для :root) сложно — не очевидно, в файл к какой именно сущности их положить, поэтому теперь просто кидаю варнинг.

from bem-tools-create-by-css.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.