Skip to content

npm imports and versions #1961

Closed Answered by srenatus
srenatus asked this question in Q&A
Discussion options

You must be logged in to vote

Oh my. Just after posting, I found the right paragraph:

By default, npm imports resolve to the latest version of the given package. Imported versions are resolved on build or during preview and cached in your npm cache. To load an earlier or specific version of a package, add a semver range.

So this did the trick:

import { OPAClient } from "npm:@styra/[email protected]";

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by srenatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant