question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid package version deduction

See original GitHub issue

I am adding a package that is in the beta:

npm install @formkit/vue
npm show @formkit/vue

# @formkit/vue@1.0.0-beta.11

Then I set up the CDN:

'@formkit/vue': cdn.jsdelivr('FormKit', 'dist/formkit-vue.js'),

During the build, the following message appears:

[plugin-monkey] not found module @formkit/vue version, use @formkit/vue@latest

The resulting file has an invalid URL to the package:

// @require      https://cdn.jsdelivr.net/npm/@formkit@latest/dist/formkit-vue.js

I am using the following workaround:

'@formkit/vue': [
    'FormKit',
    (version: string) => `https://cdn.jsdelivr.net/npm/@formkit/vue@${version}/dist/formkit-vue.js`,
],
// @require      https://cdn.jsdelivr.net/npm/@formkit/vue@latest/dist/formkit-vue.js

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lisongecommented, Oct 10, 2022

you can manually fix it by import json, I will fix this later

// vite.config.ts
import pkg from '@formkit/vue/package.json';

/*
'@formkit/vue': [
    'FormKit',
    `https://cdn.jsdelivr.net/npm/@formkit/vue@${pkg.version}/dist/formkit-vue.js`,
],
*/
0reactions
lisongecommented, Oct 10, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Private github repository returns invalid package version #6195
I have tested this behavior using the following versions of yarn: 1.5.1 ... Private github repository returns invalid package version #6195.
Read more >
Invalid package version for a dependency - Stack Overflow
I am using NuPack (https://www.nuget.org/packages/NuPack/) to create a Nuget automatically on build but when I go to upload my Nuget file, it ...
Read more >
Cost of Taking the Wrong Tax Deductions - TurboTax - Intuit
Taking the wrong tax deductions can cost you time and money. If you're depending on a tax refund, a tax return that is...
Read more >
The package version had build metadata. We do not support ...
The package is invalid: The package version had build metadata. We do not support versions with build metadata - Visual Studio Feedback.
Read more >
Here's what taxpayers should do if they have missing or ... - IRS
Taxpayers who haven't received a W-2 or Form 1099 should contact the employer, payer or issuing agency and request the missing documents. This ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found