# #node.js #npm #webpack #cypress #gitlab-ci-runner
#node.js #нпм #веб-пакет #кипарис #gitlab-ci-бегун
Вопрос:
Я использую Cypress для тестирования e2e. В Gitlab CI я получаю эту ошибку из веб-пакета:
Oops...we found an error preparing this test file: cypress/integration/node_modules/randomstring/node_modules/randombytes/test.js The error was: Error: Webpack Compilation Error ./cypress/integration/node_modules/randomstring/node_modules/randombytes/test.js Module not found: Error: Can't resolve 'tape' in '/e2e/cypress/integration/node_modules/randomstring/node_modules/randombytes' resolve 'tape' in '/e2e/cypress/integration/node_modules/randomstring/node_modules/randombytes' Parsed request is a module using description file: /e2e/cypress/integration/node_modules/randomstring/node_modules/randombytes/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration Looked for and couldn't find the file at the following paths: [/e2e/cypress/integration/node_modules/randomstring/node_modules/randombytes/node_modules] [/e2e/cypress/integration/node_modules/randomstring/node_modules/node_modules] [/e2e/cypress/integration/node_modules/node_modules] [/e2e/cypress/node_modules] [/e2e/node_modules] [/node_modules] [/e2e/cypress/integration/node_modules/package.json] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape.js] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape.json] [/e2e/cypress/integration/node_modules/tape/package.json] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape.jsx] [/e2e/cypress/integration/node_modules/tape] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape.mjs] [/e2e/cypress/integration/node_modules/tape.js] [/e2e/cypress/integration/node_modules/randomstring/node_modules/tape.coffee] [/e2e/cypress/integration/node_modules/tape.json] [/e2e/cypress/integration/node_modules/tape.jsx] [/e2e/cypress/integration/node_modules/tape.mjs] [/e2e/cypress/integration/node_modules/tape.coffee]
вывод говорит о невозможности разрешить «ленту» в randomstring
пакете.
Что я могу с этим поделать ? Это ошибка компиляции.