-
Notifications
You must be signed in to change notification settings - Fork 1
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
Does not work when using Yarn Plug'n'play. #33
Comments
Thanks for info. At the moment I have no time to check into yarn docs to make this works, but if you already know how to make this works, PR is welcome. But your solution maybe is enough? I am not sure about best approach to handle this. |
At the moment, a temporary solution is enough for me personally. And although the installation via yarn install works stably, in the future, it is desirable to find a solution, because it is not very convenient for each user to describe dependencies separately if they want to use plug'n'play. |
I will surely look into. stackoverflow solution seem cover all package manager, but not sure pro and cons. |
Some packages work stably (such as posthtml-easy-bem and posthtml-img-autosize), but there are also those that do not work (like posthtml-beautify). |
Can't find how they solve yarn issue? |
You are a cunning man, however! In the executable files of plugins that did not work, there is a similar import: ... require('posthtml/lib/api'); Yarn does not understand where you are referring to, therefore it gives an error. P.S: |
I will try to make changes in my local copy of the plugin. |
If that is the rule, then check maybe also all
Ok let me know, if this is the working solution, let me know and I can quickly fix it immediately and release new version. |
Have you checked if this works? |
There are times when it's better for me not to do anything for my own health. Wait for some time, I will recover my strength and I will go back to work. |
There is no hurry! Health first. If I find time I will try to reproduce the problem, and solve it. If you already have a repo with gulp + yarn send me the link, otherwise I try to recreate it. I haven't used gulp for long time. |
Please note that the link is to the branch that interests you. The launch will fail because I have disabled the "temporary" solution. To return it, see the head text of this issue. P.S: Made small changes in the branch, if you downloaded it earlier, synchronize the changes. |
I think I figured out the problem because of this. posthtml was under This commit should fixes the issue: 0c79060#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 Basically I just move I did test with your repo and works fine. Just add in your package.json this: "posthtml-component": "github:thewebartisan7/posthtml-components#main", to use latest version. This is the output after updating: ![]() Please to confirm that also works for you everything else, and then I will release new Thanks! |
It worked! I will remove the temporary solution with your plugin, however, the bug has crept up from someone else's territory ... I made changes in my repository so that you could see the error. It was worth noting, but I also made a similar "temporary solution" for this plugin to make it work. As soon as I disabled the solution, because of this, despite the fix, the plugin could not be imported. |
If you think it's none of your business and/or you can't fix it, write here and close the issue. |
Try open an issue on posthtml-expression, I am sure @Scrum will be happy to fix this issue. To me seem the same issues, since I can see in console:
So basically just update package.json: https://github.com/posthtml/posthtml-expressions/blob/master/package.json#L25 If @Scrum confirm you may just try to open a PR. I don't think I can solve this without updating directly posthtml-expression plugin. However, I notice there is same issue with ![]() If there is anything I can fix in this plugin, let me know. |
The issue with the dependency of plugin posthtml-expressions has been resolved, try to update your plugin. |
Greetings!
I tried to run your plugin through the
yarn
package manager, usingplug'n'play
technology.I was running the plugin via
gulp
.Launch code
When importing (it is when importing, the code in the task does not affect) yarn throws the following error:
Error in terminal:
This is similar to a typical error for plugins not adapted for yarn plug'n'play, which consists in an ambiguous designation of a dependency on another package.
A link on the repository (see the develop branch) where I conducted the launch.
These links should help you:
Documentation of Yarn plug'n'play technology
API documentation for this technology
A page on stackoverflow, which, apparently, refers to this problem
P.S: I managed to find a temporary solution, it consists in explicitly specifying dependencies. After entering the code, you must use the
yarn
command.Code in .yarnrc.yml
The text was updated successfully, but these errors were encountered: