Using Firestore with Snowpack #2282
Replies: 2 comments 2 replies
-
I think i solved my own issue - no bug per-say.. but if you have the wrong setup, snowpack pulls in the server version of firestore. Then: it gets cached. if you have a setup that you think should be working but it isn't, try clearing the node_modules/.cache |
Beta Was this translation helpful? Give feedback.
-
I'm trying to do the same. I had this working prior to 3.0, but even following the above I get: Error: Import "firebase/firestore" could not be resolved. Which I do: in
but I get the same error. Incidentally if I remove firebase completely I get the same error with I started a new discussion here in case that's unrelated to the above. |
Beta Was this translation helpful? Give feedback.
-
I'm having an issue using snowpack + firestore together. I can't seem to import the firebase/firestore library, no matter what kind of snowpack config I'm using. [email protected], snowpack@^3.0.10
Error I see:
Uncaught (in promise) TypeError: Failed to resolve module specifier "process". Relative references must start with either "/", "./", or "../"
.I've tried setting
packageOptions.polyfillNode
to true, and even usingpackageOptions.rollup.plugins
require('rollup-plugin-node-polyfills')({ process: true })
andrequire("rollup-plugin-node-globals")()
- to no availAny pointers on how to debug this?
edit: i've tried importing the firestore files all sorts of ways too
Beta Was this translation helpful? Give feedback.
All reactions