Working through this configuration for the first time / fresh setup:
Ubuntu 20.04..6
Wrangler 2.17.0
nodejs v16.20.0
Cloned repo 30 Apr and ensure the updated wrangler.toml
name = "unifi-cloudflare-ddns"
main = "src/index.js"
compatibility_date = "2023-04-23"
compatibility_flags = [ "nodejs_compat" ]
azureadmin@vm-linux-001:~/unifi-cloudflare-ddns$
The package "buffer" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file to enable Node compatibility.
✘ [ERROR] Build failed with 1 error:
src/index.js:1:23: ERROR: Could not resolve "buffer"
Working through this configuration for the first time / fresh setup: Ubuntu 20.04..6 Wrangler 2.17.0 nodejs v16.20.0 Cloned repo 30 Apr and ensure the updated wrangler.toml
name = "unifi-cloudflare-ddns" main = "src/index.js" compatibility_date = "2023-04-23" compatibility_flags = [ "nodejs_compat" ] azureadmin@vm-linux-001:~/unifi-cloudflare-ddns$
getting error:
✘ [ERROR] Could not resolve "buffer"
The package "buffer" wasn't found on the file system but is built into node. Add "node_compat = true" to your wrangler.toml file to enable Node compatibility.
✘ [ERROR] Build failed with 1 error:
src/index.js:1:23: ERROR: Could not resolve "buffer"