Every time I’m renaming or moving a typescript file, I get the following error in
Bundle Error: Cannot find module './OldFileName' from '/home/user/superblocks/my-block/build/development/transpiled/user/frontend'
The only way I found that makes
block run work again (if I don’t want to rename or move the file back) is to delete the build folder, the block node_modules folder, uninstall the blocks-cli and today I also had to run
npm cache clean --force.
I’m guessing it has something to do with the typescript or babel transpilation process that keeps previously transpiled files around in a cache.
Is there a way to rename or move files without breaking
If not, is there a more time efficient way to fix this after it breaks? Someway to efficiently clear the relevant cache without having to uninstall and clear everything npm?