Skip to content

[3.1.2] Deprecation: How to use getUrlForPackage()? #2990

Discussion options

You must be logged in to vote

Update: I have worked around the problem (possibly it's a real solution...)

It turns out that my snowpack.config.js file sets packageOptions.source="remote", which causes the error message. Commenting out that line makes it go away. Here's a repo that reproduces the problem: https://github.com/richb-hanover/snowpack-getUrlForPackage

I looked through my commit history to see where this line came from: I started the project with Snowpack 2.0.something. When I converted to a 3.0.x version, I appear to have added the packageOptions.source="remote" line.

Commenting it out causes the error to go away for Snowpack 3.1.2...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by richb-hanover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants