Package "path" not found when running with polyfillNode: true #1981
Replies: 2 comments 2 replies
-
What you're seeing: You can't use "path" in your own code, since it's a Node.js built-in and doesn't exist in the browser. You can look for a equivalent package or polyfill on npm. But, I think using |
Beta Was this translation helpful? Give feedback.
-
Oddly, I just started getting this error in 3.1.1 in packageOptions: {
polyfillNode: true
}, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm having trouble using the node-built-in
path
module with snowpack. I understand that a special option is needed to polyfill node built-in for the browser, so I did:but whenever I run
snowpack dev
I still get the following error:Any ideas ?
Beta Was this translation helpful? Give feedback.
All reactions