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
After updating to "gatsby-plugin-material-ui": "^3.0.0" I've got the same issue as #65.
Installed packages:
browserslist: 4.16.3
autoprefixer: 10.2.5
postcss: 8.2.9
postcss-value-parser: 4.1.0
Error:
warn Unsafe builtin method was used, future builds will need to rebuild all pages
warn WebpackError: Unsafe builtin usage fs.existsSync
at nikita-docs/node_modules/browserslist/node.js:38:1
at nikita-docs/node_modules/browserslist/node.js:46:1
at nikita-docs/node_modules/browserslist/node.js:197:1
at nikita-docs/node_modules/browserslist/index.js:433:1
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:54:12
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:42:26
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:41:20
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:86:25
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:247:29
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:245:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:270:16
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/processor.js:67:27
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:138:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:74:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:60:16
36 | return filenessCache[file]
37 | }
> 38 | var result = fs.existsSync(file) && fs.statSync(file).isFile()
| ^
39 | if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
40 | filenessCache[file] = result
41 | }
warn WebpackError: Unsafe builtin usage fs.statSync
at nikita-docs/node_modules/browserslist/node.js:38:1
at nikita-docs/node_modules/browserslist/node.js:46:1
at nikita-docs/node_modules/browserslist/node.js:197:1
at nikita-docs/node_modules/browserslist/index.js:433:1
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:54:12
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:42:26
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:41:20
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:86:25
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:247:29
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:245:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:270:16
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/processor.js:67:27
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:138:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:74:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:60:16
36 | return filenessCache[file]
37 | }
> 38 | var result = fs.existsSync(file) && fs.statSync(file).isFile()
| ^
39 | if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
40 | filenessCache[file] = result
41 | }
warn WebpackError: Unsafe builtin usage fs.existsSync
at nikita-docs/node_modules/browserslist/node.js:38:1
at nikita-docs/node_modules/browserslist/node.js:199:1
at nikita-docs/node_modules/browserslist/node.js:49:1
at nikita-docs/node_modules/browserslist/node.js:197:1
at nikita-docs/node_modules/browserslist/index.js:433:1
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:54:12
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/browsers.js:42:26
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:41:20
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:86:25
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:247:29
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:245:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/supports.js:270:16
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/autoprefixer/lib/processor.js:67:27
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:138:18
at nikita-docs/node_modules/gatsby-plugin-material-ui/node_modules/postcss/lib/container.js:74:18
36 | return filenessCache[file]
37 | }
> 38 | var result = fs.existsSync(file) && fs.statSync(file).isFile()
| ^
39 | if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
40 | filenessCache[file] = result
41 | }
The text was updated successfully, but these errors were encountered:
sergkudinov
changed the title
Bug: webpack warnings on build after upgrade to v3
Build error: webpack warnings on build after upgrade to v3
Apr 7, 2021
After updating to
"gatsby-plugin-material-ui": "^3.0.0"
I've got the same issue as #65.Installed packages:
Error:
Environment
The text was updated successfully, but these errors were encountered: