Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file #30508

Open
tplevko opened this issue Nov 1, 2024 · 2 comments
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@tplevko
Copy link

tplevko commented Nov 1, 2024

Current behavior

We're using yarn workspaces, to create multiple packages in our project. I'm trying to reference one of the packages in my cypress tests as storage for the selectors.

The error I'm getting is:

Error: Webpack Compilation Error
Module parse failed: Assigning to rvalue (9:5)
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

Desired behavior

The package should be used with no error.

Test code to reproduce

import { selectors } from '@kaoto/kaoto/testing'; // This is the package I'm using

Cypress.Commands.add('waitForEditorToLoad', () => {
  cy.get(selectors.CODE_EDITOR).should(($editor) => {
    expect($editor.find(selectors.LOADING)).to.not.exist;
  });
});

Cypress Version

latest

Node version

v18.4.0

Operating System

linux

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

@tplevko Which file are you importing this into? If it's a test file, is the package expected to be imported into the browser context?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Nov 4, 2024
@tplevko
Copy link
Author

tplevko commented Nov 11, 2024

I'm importing into test support file. And yes, the package is expected to be imported into the browser context, but fails to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants