I have a repository that I published to a package. I installed this package in another repository and want to use it but I get an error: (where the ...
are the name of any package that trying to import in my package)
X [ERROR] Could not resolve "@.../..."
../../node_modules/.../.../src/.../....ts:6:7:
6 │ import "@.../...";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@.../..." as external to exclude it from the bundle,
which will remove this error.
X [ERROR] Could not resolve "@.../..."
../../node_modules/.../.../src/.../....ts:7:7:
7 │ import "@.../...";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How can I refactor the url so I can use that package?
npm i -S <the-package> --legacy-peer-deps
may also help in certain cases. – Ferrigno