I recently published a simple React module that I wrote in TypeScript. I tested my module by importing the local package into a project, and it worked flawlessly. However, now that I've published the module, whenever I try to import it into a project, I get the following error:
Failed to compile.
./src/...
Module not found: Can't resolve '<module>' in '.../src/...'
Package is listed in both package.json
and package-lock.json
, and the module shows up in node_modules
. Additionally, VS Code doesn't throw any fits, so I'm not quite sure what could be the issue.