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

Remove var module declaration from minimal-env.js #109

Closed
dustingraham opened this issue Oct 7, 2019 · 6 comments
Closed

Remove var module declaration from minimal-env.js #109

dustingraham opened this issue Oct 7, 2019 · 6 comments
Labels

Comments

@dustingraham
Copy link

Howdy,

Of course it is up to your discretion if you want to make this change. I just want to bring it to your attention.

Once I installed bcrypt for password hash checking, the module.exports support in WebStorm IDE is failing.

I found others had been running into this as well:

bcrypt.js/externs/minimal-env.js

I've gone into /node_modules/ and marked minimal-env as plain text so this suppresses the issue in my current environment, but I'll need to remember it for each workstation I use and each project where I pull this in. Minor annoyance, but thought you might be able to consider avoiding the var module; declaration.

Thanks.

@MohamedElidrissi
Copy link

Yes! Was about to create an issue about this, doesn't seem like its getting anyone's attention though.

@vdavid
Copy link

vdavid commented Nov 28, 2019

Yes, very annoying. Of course, it's not your package's fault.
For anyone coming here from Google searches, a quick fix is to right click minimal-env.js and choose 'Mark as Plain Text'.

@andorep
Copy link

andorep commented Dec 23, 2019

Yes, very annoying. Of course, it's not your package's fault.
For anyone coming here from Google searches, a quick fix is to right click minimal-env.js and choose 'Mark as Plain Text'.

@vdavid It works for me. Thanks!

@dustingraham
Copy link
Author

@vdavid Yes. I explained that you can right click minimal-env.js and 'Mark as Plain Text' in the original issue. I'm not sure if "not your package's fault" is quite accurate. Most IDEs are designed to crawl packages and provide syntax highlighting and type hinting.

This issue is a report that this declaration causes folks that use an IDE with type hinting to have to take a couple extra steps for any project where this package is used. I was suggesting avoiding it or removing it to make things a little easier on that subset of users. If the author chooses not to, that's their call and is fine by me. :) But, the fact that folks end up here via Google is due to this minimal-env.js script. My opinion of course.

@mdhishaamakhtar
Copy link
Contributor

Not just var module but also process

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the stale label Feb 21, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants