-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
import/no-unresolved fails to find missing dependencies within a workspace #1688
Comments
This also happens with other packages within the same workspace. So given
|
|
Thanks for that, @ljharb! I have 'import/no-extraneous-dependencies': context => [
'error',
{
devDependencies: false,
packageDir: [context.getFilename(), __dirname],
},
], in my root |
I can not do like @jamesarosen, I have this error:
|
I have a Yarn workspace with the following structure:
In
./package.json
, I haveThat adds
react-transition-group
through the following dependency tree:In
./packages/myPackage/index.js
, I havebut I don't declare a direct dependency from
@my/package
toreact-transition-group
.import/no-unresolved
finds no problems. But if I publish@my/package
, it (naturally) doesn't have access toreact-transition-group
.The text was updated successfully, but these errors were encountered: