Closed sambacha closed 2 years ago
es6loader can not be loaded as it is not in the dist/ folder.
dist/
$ npx hardhat An unexpected error occurred: Error: Cannot find module './es6loader'
copy the es6loader file in the build step to the dist dir.
build
dist
"build": "tsc --build --clean && tsc && cp es6loader.js dist/",
Using dpack directly from github "@etherpacks/dpack": "https://github.com/dapphub/dpack"
Using dpack directly from github
"@etherpacks/dpack": "https://github.com/dapphub/dpack"
fixed in https://github.com/dapphub/dpack/pull/60
Fix: cp es6loader to dist/
es6loader can not be loaded as it is not in the
dist/
folder.Example
Fix
copy the es6loader file in the
build
step to thedist
dir.