title: Webpack error during vuejs with cypress for e2e test
body: <p>I am sorry for my bad English skill. I try to write e2e test for vuejs. I am using cypress for that. But there is a problem. This problem is a webpack error. The error occurs after import a thirdy package.</p>
  <p>My cypress test:</p>
  <pre><code>      import { faker } from '@faker-js/faker';
  
        const username = faker.internet.userName();
        const password = faker.internet.password();
        it('form elements should be correct', () =&gt; {
          cy.get(userLoginElement.username).type(username).should('have.value', username);
          cy.get(userLoginElement.password).type(password).should('have.value', password);
          cy.get(userLoginElement.loginButton).should('exist');
        });
  </code></pre>
  <p>My cypress.json file:</p>
  <pre><code>{
    &quot;pluginsFile&quot;: &quot;tests/e2e/plugins/index.js&quot;,
    &quot;baseUrl&quot;: &quot;http://127.0.0.1:8080&quot;
  }
  </code></pre>
  <p>My plugin file of cypress</p>
  <pre><code> module.exports = (on, config) =&gt; {
    return Object.assign({}, config, {
      fixturesFolder: 'tests/e2e/fixtures',
      integrationFolder: 'tests/e2e/specs',
      screenshotsFolder: 'tests/e2e/screenshots',
      videosFolder: 'tests/e2e/videos',
      supportFile: 'tests/e2e/support/index.js'
    })
  }
  </code></pre>
  <p>My versions of the packages:</p>
  <pre><code>&quot;faker&quot;: &quot;^6.6.6&quot;,
   &quot;@vue/cli-plugin-e2e-cypress&quot;: &quot;~5.0.0&quot;,
   &quot;@vue/cli-plugin-unit-jest&quot;: &quot;~5.0.0&quot;,
  &quot;cypress&quot;: &quot;^8.3.0&quot;,
  </code></pre>
  <p>Throw below error after running <strong>vue-cli-service test:e2e</strong></p>
  <pre><code>Error: Webpack Compilation Error
  ./node_modules/@faker-js/faker/dist/esm/chunk-4J2PVEV7.mjs 1:1430
  Module parse failed: Unexpected token (1:1430)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  </code></pre>
  <p>May it be the version that reasons of the error ?</p>
  <p>Edit:</p>
  <p>There is a thread opened for this problem. <a href="https://github.com/faker-js/faker/issues/1073" rel="nofollow noreferrer">Here</a></p>