dapphub / dpack

simple lockfile for your dapp's addresses and artifacts
46 stars 9 forks source link

fix(build): ensure es6loader is available #59

Closed sambacha closed 2 years ago

sambacha commented 2 years ago

Fix: cp es6loader to dist/

es6loader can not be loaded as it is not in the dist/ folder.

Example

$ npx hardhat
An unexpected error occurred:

Error: Cannot find module './es6loader'

Fix

copy the es6loader file in the build step to the dist dir.

    "build": "tsc --build --clean && tsc && cp es6loader.js dist/",

Using dpack directly from github

"@etherpacks/dpack": "https://github.com/dapphub/dpack"
sambacha commented 2 years ago

fixed in https://github.com/dapphub/dpack/pull/60