-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Version 9.3.2 released to npm does not work #1456
Comments
Ohh, I didn't expect people to rely on the internal files structure to the package. You should |
Did you test this?
|
We do have integration tests for some of the exports, though not the Separator. This is the legacy package I don't work with too often. I'll take a look, thanks for the report. |
Alright, so went to verify and the documented syntax is as follow: import inquirer from 'inquirer';
new inquirer.Separator(); I double-checked the documentation and direct file access isn't documented. So while I agree it's 9.3.2 comes with an implicit breaking change, I don't think it's a reasonable expectation that the folder/file structure from a project to not change. Node project shouldn't import from undocumented direct file access to package internals. I'm open to revisiting this issue if multiple users run into this issue somehow; so please post below if you've also encountered this issue. But in all cases, a future safe solution is to rely on |
Hello @SBoudrias, I guess other users are also running into this issue. Because inquirer-autocomplete-prompt does not work anymore with [email protected] seemingly because of the changed project structure. See mokkabonna/inquirer-autocomplete-prompt#159 But maybe it's the way of importing is also a misconception by the creator of the plugin. I am going to let them know. |
Ohhh, that's a bit more of an issue. There's so many plugins and they might access internals... Ugh, I'll work out a solution to maintain that (maybe defining an |
|
Works. Thanks for the quick reply. |
This seems a bit bloated. Would it be better to notify other authors to modify it in the next major version? |
It would, but that's the unfortunate reality of old projects (>10 years old) with large adoption. Breaking change risk leaving large chunks of the ecosystem behind. But anyhow, the true fix is for plugins to migrate to |
Oh. I didn't notice that you are rewriting inquirer. Maybe add a notice to the legacy inquirer project during install/update. |
As stated in the title, version 9.3.2 released to npm does not work properly. An import like
import Separator from 'inquirer/lib/objects/separator.js';
which worked prior to 9.3.2 now throwsERR_MODULE_NOT_FOUND
.Weirdly enough, I couldn't find this version on the releases page of GitHub.
The text was updated successfully, but these errors were encountered: