We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I created an NX workspace using the command npx create-nx-workspace@latest nx-repo and then chose stack: "none" for an empty TS repo.
npx create-nx-workspace@latest nx-repo
then I create two js libs. pkg-1 and pkg-2.
in pkg-1 I want to call a function pkg2() that created automatic from the nx g @nx/js:lib command.
pkg2()
nx g @nx/js:lib
the problem is typescript say: Cannot find name 'pkg2'..
Cannot find name 'pkg2'.
those packages are added to tsconfig automatic:
v20.3.3
The text was updated successfully, but these errors were encountered:
@jon9090 you need to import the function pkg2 from your pkg-2 library in your pkg-1.ts file...
TS references replace path aliases, but they are still 2 different libraries packages and you need to export and import functions like before
Sorry, something went wrong.
No branches or pull requests
Current Behavior
I created an NX workspace using the command
npx create-nx-workspace@latest nx-repo
and then chose stack: "none" for an empty TS repo.then I create two js libs. pkg-1 and pkg-2.
in pkg-1 I want to call a function
pkg2()
that created automatic from thenx g @nx/js:lib
command.the problem is typescript say:
Cannot find name 'pkg2'.
.those packages are added to tsconfig automatic:
Nx Report
The text was updated successfully, but these errors were encountered: