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

Fix plugin page failure after updating to 13.10.0 #2251

Conversation

BenSurgisonGDS
Copy link
Contributor

@BenSurgisonGDS BenSurgisonGDS commented Jul 10, 2023

See: 13.10.0 fails to start when dependency missing from node_modules

@nataliecarey
Copy link
Contributor

Can you add a test for this please?

@BenSurgisonGDS
Copy link
Contributor Author

Can you add a test for this please?

A test has been created to cover this issue.

@BenSurgisonGDS BenSurgisonGDS changed the title Prototype will now start when a plugin is missing from node_modules Fix plugin page failure after updating to 13.10.0 Jul 12, 2023
@BenSurgisonGDS BenSurgisonGDS linked an issue Jul 12, 2023 that may be closed by this pull request
@BenSurgisonGDS BenSurgisonGDS force-pushed the 2248-13100-fails-to-start-when-dependency-missing-from-node_modules branch from 842b2e7 to 798bfbd Compare July 12, 2023 12:25
@@ -42,7 +42,7 @@ async function isValidVersion (packageName, version) {
const { versions = [], localVersion } = await lookupPackageInfo(packageName, version)
const isVersionValid = [...versions, localVersion].includes(version)
if (!isVersionValid) {
console.log('version', version, ' is not valid, valid options are:\n\n', versions)
console.log('version', version, ' is not valid, valid options are:\n\n', localVersion || versions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log doesn't describe the condition if localVersion is set. I'd suggest using the same array as you check against (const validVersions = [...versions, localVersion])

nataliecarey
nataliecarey previously approved these changes Jul 13, 2023
@nataliecarey nataliecarey dismissed their stale review July 13, 2023 14:34

I forgot I had a comment earlier in the review process

@nataliecarey
Copy link
Contributor

Final thing - could you squash the commits please?

@BenSurgisonGDS BenSurgisonGDS force-pushed the 2248-13100-fails-to-start-when-dependency-missing-from-node_modules branch from 9441c94 to cbfde67 Compare July 13, 2023 16:15
@BenSurgisonGDS BenSurgisonGDS merged commit fc19c68 into main Jul 13, 2023
@BenSurgisonGDS BenSurgisonGDS deleted the 2248-13100-fails-to-start-when-dependency-missing-from-node_modules branch July 13, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin page fails after updating to 13.10.0 13.10.0 fails to start when dependency missing from node_modules
2 participants