microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4ddf43ae0dffb11cf982bebe006f37d5524bee69

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/handbook/faq.md

15lines · modepreview

---
id: faq
title: FAQ
---

# Frequently Asked Questions (FAQ)

## I'm getting the error `Cannot find package 'x' imported from 'y'`, but I'm not using this package. Why?

This issue typically arises when package 'y' has a `peerDependency` on package 'x', and package 'x' hasn't been installed. This can occur if you're using a version of npm that's older than version 7, as these older versions don't automatically install peerDependencies. You would need to install them manually.

### How can I fix this?

- You can update npm using the command `npm install -g npm`.
- If you're unable to update npm, you can add the dependencies to your project dependency. This should resolve the issue. Use the command `npm install x`.