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

Help Request: Why are my lint tests failing? #8694

Closed
nashmia-riaz opened this issue Mar 21, 2018 · 5 comments
Closed

Help Request: Why are my lint tests failing? #8694

nashmia-riaz opened this issue Mar 21, 2018 · 5 comments
Labels
a-DevHelp Help request from contributors; this label is not used anymore c.Message A means of communication with the core team; this label is not used anymore

Comments

@nashmia-riaz
Copy link
Contributor

When I run 'npm run lint:js', it results in an error for every single .js file in dev/js. The resulting error is something like this:

error Casing of ../main/instructorCourseEnrollPage does not match the underlying filesystem import/no-unresolved

In addition to this, the webpack-main.config.js has the same error as well. The ./gradlew lint test, however, does pass. The error occurs on my local unmodified master branch. I have tried running npm install and npm run build, tried running the server again but in any case, I keep getting a massive list of errors on npm lint:js only.

What is the possible reason for this? And how can it be resolved?

@sukanta-27
Copy link
Member

@nashmia-riaz It is probably a bug in eslint-plugin-import (import-js/eslint-plugin-import#720), but it should not occur after V2.8.0. Can you confirm that you have the updated master branch?

@whipermr5 whipermr5 added c.Message A means of communication with the core team; this label is not used anymore a-DevHelp Help request from contributors; this label is not used anymore labels Mar 22, 2018
@wkurniawan07
Copy link
Member

@nashmia-riaz can you report using a proper help request template? Right now there are quite a lot of missing information if we are to troubleshoot. Also, while may not be written on that template, but do write down your Node.js version as well.

@nashmia-riaz
Copy link
Contributor Author

@sukanta-27 I am up to date with the master. Upon further tinkering, I have found out that the tests do pass in cmd, just not in powershell or git shell (which i was using earlier). So, I assume that the problem is local.

@wkurniawan07 apologies about not using the template earlier as I think the problem is with configurations on my machine.
Commit SHA: e407894
Operating System: Windows 10
JDK Version: 1.8.0
Google Cloud SDK Version: 186.0.0
Eclipse / IntelliJ Version (if applicable): IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Firefox / Chrome Version (if applicable):
Node.js version: 5.6.0

@wkurniawan07
Copy link
Member

@nashmia-riaz I may have an idea of what's happening, but does this still happen?
Also can I check that 5.6.0 is your Node.js version, not your NPM version?

@nashmia-riaz
Copy link
Contributor Author

@wkurniawan07 I recently reset my laptop in hopes that it was a configuration issue on my machine, but it didn't go away.
I assume this is the correct way to check npm version (screenshot attached).
capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-DevHelp Help request from contributors; this label is not used anymore c.Message A means of communication with the core team; this label is not used anymore
Projects
None yet
Development

No branches or pull requests

4 participants