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

index.js is importing non existing ./commands Module #45

Closed
cwray-tech opened this issue Feb 10, 2022 · 0 comments
Closed

index.js is importing non existing ./commands Module #45

cwray-tech opened this issue Feb 10, 2022 · 0 comments

Comments

@cwray-tech
Copy link

cwray-tech commented Feb 10, 2022

In the boilerplate code in support/index.js, the file is importing a non existing Module: ./commands

I removed this in my app and webpack errors for that went away.

Is there any reason why this is being imported? If not, I would be happy to submit a pr fix.

In cypress/support/index.js:

Current:

import './commands'; // Import of non existing Module:
import './laravel-commands';
import './laravel-routes';
import './assertions';

before(() => {
    cy.task('activateCypressEnvFile', {}, { log: false });
    cy.artisan('config:clear', {}, { log: false });

    cy.refreshRoutes();
});

after(() => {
    cy.task('activateLocalEnvFile', {}, { log: false });
    cy.artisan('config:clear', {}, { log: false });
});

Webpack Errors generated:

Error: Webpack Compilation Error
./cypress/support/index.js
Module not found: Error: Can't resolve './commands' in 'C:\laragon\www\quickinventory\cypress\support'
Looked for and couldn't find the file at the following paths:
[C:\laragon\www\quickinventory\cypress\support\commands]
[C:\laragon\www\quickinventory\cypress\support\commands.js]
[C:\laragon\www\quickinventory\cypress\support\commands.json]
[C:\laragon\www\quickinventory\cypress\support\commands.jsx]
[C:\laragon\www\quickinventory\cypress\support\commands.mjs]
[C:\laragon\www\quickinventory\cypress\support\commands.coffee]
@cwray-tech cwray-tech changed the title index.js is importing non existing ./commands file index.js is importing non existing ./commands Module Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant