Hello all!
This is my first foray into using Fauna (using the current version, v10). My setup is with Gatsby / Netlify. If it’s relevant I’m using Sanity as my CMS. Node: 18.17.1 and npm: 9.6.7, but I’ve also tried Node: 20.11.0 and npm: 10.2.4.
My project is a simple web hook that validates an email from a form input then either adds the form data to a db for accepted or rejected entrants. While using netlify build to start testing, I get this error:
warn ./node_modules/fauna/dist/browser/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
warn ./node_modules/fauna/dist/browser/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
success Building production JavaScript and CSS bundles - 5.056s
ERROR #98123 WEBPACK.BUILD-HTML
Generating SSR bundle failed
Reading from "node:http2" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
File: node:http2
ERROR #98123 WEBPACK.BUILD-HTML
Generating SSR bundle failed
Reading from "node:os" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
File: node:os
not finished Building HTML renderer - 3.400s
"build.command" failed
The error seems to indicate the need for an additional plugin for node:os and node:http2. But honestly, I’m not sure what that means. Has anyone else run into this issue or have insight into how I can correct this?