Closed hybridherbst closed 2 years ago
Might be related to npm. I did yarn && yarn dev
and got this.
If you're using npm there is no lockfile, so you might end up with an incompatible set of dependencies, potentially a new verdaccio version with changes that break the plugin.
According to package.json npm run dev
simply calls yarn && yarn dev
. I tried it nonetheless but get the same behaviour.
I'll try to start "from scratch" but not sure what exactly could have gone wrong, this was a fresh clone anyways. I'll keep you posted!
According to package.json
npm run dev
simply callsyarn && yarn dev
.
I'm seeing this
No idea why that would have a different effect on your system. I could only suspect different yarn/node versions or a different git revision/local changes.
I'll have to close this because I can't reproduce it.
Feel free to post a PR or comment if you come across a solution or find out more about what might be causing this.
I ran a dependency update as part of project maintenance and then ran into the same issue. So I'm infering that you didn't use yarn to install dependencies and hence the yarn lock file, but instead installed with npm which ignores the yarn.lock. Then you get the latest dependencies matching the semver ranges, which is not what the yarn lock file contains and is not tested to work.
Please try deleting node_modules
and then run yarn && yarn dev
exactly like that.
Bug Report
I was trying to run
npm run dev
locally to test changes to the plugin. However, it seems that doesn't work anymore- seems the plugin is loaded (I can see that in the terminal), but the actual deployment file isn't found and thus while Verdaccio works, the OAuth UI doesn't:Terminal output looks ok:
So I can only assume that some of the copy steps aren't correct anymore maybe? Are there additional steps for local development?
Suggested implementation
Would be great if there are steps listed in the Readme for setting up local development.