[3.1.2] Deprecation: How to use getUrlForPackage()? #2990
-
A small project was working fine with Snowpack 3.0.11. I upgraded with
How can I fix/workaround this? Many thanks!
Update: the console shows this message:
and the browser debugger shows line 1 of the file as
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm having a similar issue; running |
Beta Was this translation helpful? Give feedback.
-
Update: I have worked around the problem (possibly it's a real solution...) It turns out that my 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 Commenting it out causes the error to go away for Snowpack 3.1.2... |
Beta Was this translation helpful? Give feedback.
Update: I have worked around the problem (possibly it's a real solution...)
It turns out that my
snowpack.config.js
file setspackageOptions.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-getUrlForPackageI 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...