Skip to content

Latest commit

 

History

History

esm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Vocdoni SDK ESM Typescript example

This example shows how to use the ESM version of the SDK in a NodeJS project.

Ensure you run the process using both the --experimental-modules and the --experimental-specifier-resolution=node flag, as seen in the package.json file:

node --experimental-modules --experimental-specifier-resolution=node index.mjs

In order to run the example:

git clone git@github.com:vocdoni/vocdoni-sdk.git
cd vocdoni-sdk/examples/esm
yarn
yarn start

esm