Cannot find module '/home/rasitha/videos/anchor/examples/tutorial/node_modules/@project-serum/anchor/dist/cjs/index.js'. Please verify that the package.json has a valid "main" entry
I’m getting above error after running anchor test command in basic-1 example in https://github.com/project-serum/anchor. Any help would be apprecicated.
you have to build the anchor/ts package
do the following
rm -rf node_modules
pls try this
Answered By – Manoj Bandara
Answer Checked By – Jay B. (AngularFixing Admin)