Disable WebpackError: Unsafe builtin usage #32672
Replies: 1 comment
-
Hi!
You don't need to fork them, you'll need to adapt how you use them. Here's an example of how people used it: algolia/algoliasearch-client-javascript#1259
As the warning says already it'll disable the functionality by itself so you don't need to disable anything.
Can you say why? It's nothing you should do really as you waste time & money with this.
The code paths triggering these warnings only disable a certain branch/functionality, it won't affect the build breaking in my mind. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Preliminary Checks
Description
When I build, I have 3 npm packages that generate a
warn WebpackError: Unsafe builtin usage
:https.get
insimple-ddp
fs.existsSync
inpostcss
fs.statSync
inbrowserslist
These are not packages I'm planning to fork or change anything about, so I'd rather just be able to disable incremental builds, as we call
gatsby clean
before every build anyways.Also, I can't confirm this, but I suspect this is breaking builds on circleCI, as the build step crashes without showing these warnings, and it fails right before where the warnings are supposed to show up.
Reproduction Link
private
Steps to Reproduce
gatsby build
Expected Result
I expect there to be no warning.
Actual Result
There are multiple warnings.
Environment
Config Flags
None.
Beta Was this translation helpful? Give feedback.
All reactions