Задать вопрос
JastaFly
@JastaFly

Ошибка при сборке Error [RollupError]: «isTouchEnabled» is not exported by «src/js/helpers.js», imported by «src/blocks/header/header.js»?

Есть сборщик проекта на Vite, который фейлится при сборке с ошибкой:
4: import app from '/src/js/globalApp';
file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:2001
        base = Object.assign(new Error(base.message), base);
                             ^

Error [RollupError]: "isTouchEnabled" is not exported by "src/js/helpers.js", imported by "src/blocks/header/header.js".
    at error (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:2001:30)
    at Module.error (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:12982:16)
    at Module.traceVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:13348:29)
    at ModuleScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:11847:39)
    at ChildScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:6712:38)
    at ClassBodyScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:6712:38)
    at ChildScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:6712:38)
    at FunctionScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:6712:38)
    at ChildScope.findVariable (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:6712:38)
    at Identifier.bind (file:///home/bitrix/ext_www/my-site.ru/local/client_redesign/node_modules/vituum/node_modules/rollup/dist/es/shared/rollup.js:7807:40) {
  binding: 'isTouchEnabled',
  code: 'MISSING_EXPORT',
  exporter: '/home/bitrix/ext_www/my-site.ru/local/client_redesign/src/js/helpers.js',
  id: '/home/bitrix/ext_www/my-site.ru/local/client_redesign/src/blocks/header/header.js',
  url: 'https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module',
  pos: 233,
  loc: {
    column: 50,
    file: '/home/bitrix/ext_www/my-site.ru/local/client_redesign/src/blocks/header/header.js',
    line: 3
  },
  frame: "1: import { mqTest, breakpoints } from '/src/js/breakpoints';\n" +
    "2: import ScrollDirectionDetector from '/src/js/ScrollDirectionDetector';\n" +
    "3: import { bindMethods, cleanDataSelector, loadCss, isTouchEnabled } from '/src/js/helpers';\n" +
    '                                                     ^\n' +
    "4: import app from '/src/js/globalApp';",
  watchFiles: [
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/views/index.vituum.pug.html',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/views/styleguide.vituum.pug.html',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/styles/main.scss',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/main.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/vue/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/vue/dist/vue.esm-bundler.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/helpers.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/const.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/globalApp.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/ajax-block/ajax-block.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/accordion/accordion.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/vue/stores/index.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/header/header.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/header-menu/header-menu.vue',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/header-search/header-search.vue',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/mobile-menu/mobile-menu.vue',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/popup/popup.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/slider/slider.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/slider/slider.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/modal/modal.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/slider-news/slider-news.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/cards/card-news/card-news.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/form/form.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/product-card/product-card.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/product-card/product-card.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/brands-block/brands-block.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/brands-block/brands-block.vue',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/forms/auth-modal-form.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/line-clamp/line-clamp.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/footer/footer.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/cards/card-main-banner/card-main-banner.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/cards/card-benefit/card-benefit.scss?used',
    '\x00vite/preload-helper',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/runtime-dom/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/compiler-dom/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/shared/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/@vue/shared/dist/shared.esm-bundler.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/ComponentLoader.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/eventBus.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/axios/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/axios/index.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/cards/card-tool/card-tool.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/breakpoints.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/pinia/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/pinia/dist/pinia.mjs',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/header-menu/header-menu.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/mobile-menu/mobile-menu.scss?used',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/js/ScrollDirectionDetector.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/lodash/package.json',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/vue/dist/vue.runtime.esm-bundler.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/node_modules/lodash/chunk.js',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/header-menu/components/header-menu-subcategory.vue',
    '/home/bitrix/ext_www/my-site/local/client_redesign/src/blocks/icon/icon.vue',
  ]
}

Подскажите что не так?!
  • Вопрос задан
  • 79 просмотров
Подписаться 1 Простой Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы