Replies: 4 comments 6 replies
-
same problem here. It's quite unnerving to see snowpack not treating issues appropriately. The whole codebase is very buggy, and it's so hard to want to contribute to this :( |
Beta Was this translation helpful? Give feedback.
-
It sounds like you're importing Snowpack mounts & builds entire folders, so it sounds like there might be a CRA concept here that doesn't map. In Snowpack, files in your src directory will be built and served for the frontend. |
Beta Was this translation helpful? Give feedback.
-
What's odd is that I had tested that hypothesis by adding an import from child_process into a blank new CSA, but that didn't fail with this same error. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use webpack with electron, is there anyway to "disable" this error? |
Beta Was this translation helpful? Give feedback.
-
Trying to migrate a large CRA codebase to snowpack (snowpack sounds amazing, though this is my third try in the past year or two to adopt snowpack across large projects). When I run snowpack, with or without
polyfillNode: true
, I see:This is caused by some file somewhere in our src, which I can't share. We import child_process various places, but:
The codebase of course works fine in CRA. Is it possible yet to get past this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions