PACKAGE_MANAGEMENT_NO_UNRESOLVED_IMPORTS
Import statements that can not be resolved to a local file or a package from package.json dependencies are not allowed.Table of Contents
Conformance is available on Enterprise plans
All imports must be able to be resolved to a file local to the workspace or a
package declared as a dependency within the package.json
file. This ensures
that the workspace has not missed any dependencies and is not relying on
global dependencies.
component.ts
import { useState } from 'react';
import { useRouter } from 'next/router';
The package.json
is missing a dependency on the next
package.
package.json
{
"name": "shared-component-pkg",
"dependencies": {
"react": "19.0.0-beta-4508873393-20240430"
}
}
If the workspace is missing a package dependency, add the appropriate one to
the package.json
file of the workspace. In the example above, a dependency
on the next
package should be added.
Last updated on September 7, 2024
Was this helpful?