https://cypress.io logo
hey all im attempting to use cy.origin on 10.11 an...
# e2e-testing
n
hey all im attempting to use cy.origin on 10.11 and im breaking on importing my page file, im probably doing something wrong but cant figure it out
Copy code
Error: Webpack Compilation Error
./cypress/e2e/sso-ignore-claims.e2e.cy.ts 320:12
Module parse failed: 'import' and 'export' may only appear at the top level (320:12)
File was processed with these loaders:
 * ../../Users/uuuu/AppData/Local/Cypress/Cache/10.11.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-preprocessor/dist/lib/cross-origin-callback-loader.js
 * ../../Users/uuuu/AppData/Local/Cypress/Cache/10.11.0/Cypress/resources/app/node_modules/@packages/server/node_modules/ts-loader/index.js
You may need an additional loader to handle the result of these loaders.
|         cy.origin('https://test-test.auth0.com/', function () {
>            const auth0Page = import('../../pages/auth0.po');
            const UserData = import('../../data/userdata');
    at Watching.handle [as handler] (C:\Users\uuuu\App