devcert
devcert copied to clipboard
devcert is undefined.
just been trying to test the package but i get devcert undefined,
yarn add devcert
import devcert from 'devcert';
let ssl = await devcert.certificateFor('my-app.test');
devcert is undefined
Devcert does not use default exports. If you wanted to use it like you are, you would need to import it into a namespace, like this:
import * as devcert from "devcert"
Otherwise, you can do it like this:
import { certificateFor } from "devcert"
Thank you for getting back to me. I am going to try your suggestion as soon as possible. rock on!