Netplan error when trying a configuration

See if this makes any difference...

Note: Confirm no tabs, just spaces

Note: Normal indentation is two spaces

network:
    version: 2
    renderer: networkd
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    wifis:
        wlan0:
            addresses: [192.168.1.12/24]
            gateway4: 192.168.1.1
            nameservers:
                addresses: [1.1.1.1, 1.0.0.1]
            access-points:
                "accesspointname":
                    password: "accesspointpassword"

And create /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg...

network: {config: disabled}

Then...

sudo netplan try

And when you're ready...

sudo netplan generate

sudo netplan apply

reboot