-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix Poetic not working with NPM #28
Comments
Confirmed that this is the case. Unlike Yarn, NPM nests the dependencies, so it needs to use
At this time we need to evaluate if we really need to support NPM, as it seems that it has more problems than the ones it solves. |
@arianacosta I'd love to help expedite this, with a bit of info to better understand your concerns I would have some idea of the best path to take, so some questions related to your points above.
Lastly, I don't understand the concern about nested node_modules structure vs flat, linting and code formatting should only touch project owned files, not dependencies in the node_modules folder... Is there something I am missing here? |
Hi @ktiedt, Thanks, I'm looking forward to having the option to NPM as well. Here are the limitations I've found so far. As soon as we can find elegant solutions to this we can implement it. To expand on the points above: First problem: In order for ESLint to be recognized by the IDE it needs to be installed directly in 1 and 2. The problem of Example: Months after installing Poetic, there's a new version of ESLint and Poetic upgrades it's 3. This is a great find! We can definitely use it. Second problem: Even if we manage to install
To solve this, we would also need to move these dependencies to the host project as Maybe there's a workaround to these limitations, and I'm happy to look into them. I'll keep this ticket open in case someone has a solution. Thanks! |
@arianacosta ahhh that makes sense, I was looking at it from the wrong package issue. One solution may be to simply include instructions on how to configure the eslint plugin if it fails to detect eslint. This of course doesn't solve the update issue, meaning poetic would basically have to update everytime eslint or prettier release.... Of course, there is also no harm in saying "this project requires you to install eslint and prettier by running the following command:
|
@ktiedt Yeah, we could do that. I'll prepare a proof of concept to see what would be the best approach for this. Feel free to share any findings. Thank you very much for helping out! |
Is there still a problem with install? |
@oleg-koval With Yarn everything is working as expected, but we haven't been able to make it work with NPM. |
Poetic is not working when installing it with NPM. It seems that the nested
node_modules
folder structure that NPM creates does not play well with it.The text was updated successfully, but these errors were encountered: