You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess now is that it has something to do with node_modules being a symlink to a different directory as this works fine locally on my windows computer
🐛 bug report
Attempting to
import {precacheAndRoute} from 'npm:workbox-precaching'
in my service worker results in this error:with ... being an absolute path to node_modules (not in default location as glitch symlinks node_modules to a different location)
🎛 Configuration (.babelrc, package.json, cli command)
.parcelrc
package.json targets
🤔 Expected Behavior
Parcel should be able to include workbox without throwing an error
😯 Current Behavior
💁 Possible Solution
idk
🔦 Context
Trying to include workbox-precaching in service worker
💻 Code Sample
Sample service worker
imported using
navigator.serviceWorker.register(new URL("sw.js", import.meta.url), {type: 'module'});
🌍 Your Environment
Using glitch.com if that helps
The text was updated successfully, but these errors were encountered: