Skip to content
New issue

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

After apply paths alias, I have Error ( error TS2307: Cannot find module '@shared/lib' or its corresponding type declarations.) in Next.js #37

Closed
with-key opened this issue May 19, 2022 · 1 comment

Comments

@with-key
Copy link

i set monorepo (yarn workspaces), lint-staged in my project.
also, basically set tsc-files.

but. has error. Is there any setting that I need to do?

image

"lint-staged": {
    "**/*.{tsx,ts}": [
      "eslint",
      "tsc-files --noEmit"
    ]
  },
@gustavopch
Copy link
Owner

Same as #20. You'll find explanation and workarounds there in the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants